mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
Enforce compile-time errors in satamv and atahp for non-x86 targets
Satamv and atahpt require PCI port I/O which isn't currently supported on any architecture except x86/x86_64. Generate the same compiler error as other programmer drivers. Corresponding to flashrom svn r1388. Signed-off-by: Andrew Morgan <ziltro@ziltro.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
941a273c69
commit
a07438302e
6
atahpt.c
6
atahpt.c
@ -18,6 +18,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "flash.h"
|
#include "flash.h"
|
||||||
@ -77,3 +79,7 @@ uint8_t atahpt_chip_readb(const chipaddr addr)
|
|||||||
OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR);
|
OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR);
|
||||||
return INB(io_base_addr + BIOS_ROM_DATA);
|
return INB(io_base_addr + BIOS_ROM_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error PCI port I/O access is not supported on this architecture yet.
|
||||||
|
#endif
|
||||||
|
5
satamv.c
5
satamv.c
@ -19,6 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Datasheets are not public (yet?) */
|
/* Datasheets are not public (yet?) */
|
||||||
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "flash.h"
|
#include "flash.h"
|
||||||
@ -182,3 +183,7 @@ uint8_t satamv_chip_readb(const chipaddr addr)
|
|||||||
{
|
{
|
||||||
return satamv_indirect_chip_readb(addr);
|
return satamv_indirect_chip_readb(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error PCI port I/O access is not supported on this architecture yet.
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user