We don't support configuring serial PCI cards in EFI. Make this clearer in the

source rather than obfuscaring it behind NO_PCI (nothing else declares that,
so it's not making the ifdefs clearer).
This commit is contained in:
imp 2019-11-01 21:26:43 +00:00
parent f120bf6b5a
commit 6fdb9d3af0
2 changed files with 5 additions and 3 deletions

View File

@ -55,7 +55,7 @@ CFLAGS+= -I${EFISRC}/include
CFLAGS+= -I${EFISRC}/include/${MACHINE} CFLAGS+= -I${EFISRC}/include/${MACHINE}
CFLAGS+= -I${SYSDIR}/contrib/dev/acpica/include CFLAGS+= -I${SYSDIR}/contrib/dev/acpica/include
CFLAGS+= -I${BOOTSRC}/i386/libi386 CFLAGS+= -I${BOOTSRC}/i386/libi386
CFLAGS+= -DNO_PCI -DEFI CFLAGS+= -DEFI
.if !defined(BOOT_HIDE_SERIAL_NUMBERS) .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
# Export serial numbers, UUID, and asset tag from loader. # Export serial numbers, UUID, and asset tag from loader.

View File

@ -214,7 +214,8 @@ comc_port_set(struct env_var *ev, int flags, const void *value)
static uint32_t static uint32_t
comc_parse_pcidev(const char *string) comc_parse_pcidev(const char *string)
{ {
#ifdef NO_PCI #ifdef EFI
/* We don't support PCI in EFI yet */
return (0); return (0);
#else #else
char *p, *p1; char *p, *p1;
@ -256,7 +257,8 @@ comc_parse_pcidev(const char *string)
static int static int
comc_pcidev_handle(uint32_t locator) comc_pcidev_handle(uint32_t locator)
{ {
#ifdef NO_PCI #ifdef EFI
/* We don't support PCI in EFI yet */
return (CMD_ERROR); return (CMD_ERROR);
#else #else
char intbuf[64]; char intbuf[64];