[flashrom] [PATCH] Do not require PCI code for RayeR SPI driver

Stefan Tauner stefan.tauner at alumni.tuwien.ac.at
Sat Feb 20 22:35:09 CET 2016


On Sat, 20 Feb 2016 22:23:06 +0100
Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> wrote:

> New version, include sys/types.h on FreeBSD specifically instead of for
> all OS.
>

liar! At least it is still in there below :)
>
>  ifneq ($(NEED_LIBUSB0), )
> Index: flashrom-rayer_do_not_require_libpci/hwaccess.h
> ===================================================================
> --- flashrom-rayer_do_not_require_libpci/hwaccess.h	(Revision 1931)
> +++ flashrom-rayer_do_not_require_libpci/hwaccess.h	(Arbeitskopie)
> @@ -24,6 +24,8 @@
>  #ifndef __HWACCESS_H__
>  #define __HWACCESS_H__ 1
>  
> +#include <sys/types.h>
> +
>  #include "platform.h"
>  
>  #if NEED_PCI == 1
> @@ -196,7 +198,7 @@
>  #define le_to_cpu32 cpu_to_le32
>  #define le_to_cpu64 cpu_to_le64
>  
> -#if NEED_PCI == 1
> +#if NEED_RAW_ACCESS == 1
>  #if IS_X86
>  
>  /* sys/io.h provides iopl(2) and x86 I/O port access functions (inb, outb etc).
> @@ -376,6 +378,6 @@
>  #error Unknown architecture, please check if it supports PCI port IO.
>  
>  #endif /* IS_* */
> -#endif /* NEED_PCI == 1 */
> +#endif /* NEED_RAW_ACCESS == 1 */
>  
>  #endif /* !__HWACCESS_H__ */

But with that mentioned fix this is
Acked-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>
Thanks!

-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner




More information about the flashrom mailing list