1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Better error message when the CIS is a non-standards conforming '0'.

This commit is contained in:
Warner Losh 2006-06-12 03:20:44 +00:00
parent a63eba960f
commit 9dfcc6624c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159533

View File

@ -597,7 +597,9 @@ cardbus_parse_cis(device_t cbdev, device_t child,
bzero(tupledata, MAXTUPLESIZE);
expect_linktarget = TRUE;
if ((start = pci_read_config(child, PCIR_CIS, 4)) == 0) {
device_printf(cbdev, "CIS pointer is 0!\n");
if (cardbus_cis_debug)
device_printf(cbdev,
"Warning: CIS pointer 0 (no CIS present)\n");
return (ENXIO);
}
if (cardbus_cis_debug)