Add lspci command and SI_PCI_INFO getsysinfo call

This commit is contained in:
Erik van der Kouwe
2009-10-09 10:48:46 +00:00
parent 045f1cdb10
commit cb6dbfca2c
9 changed files with 151 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ PUBLIC char *pci_dev_name(vid, did)
u16_t vid;
u16_t did;
{
static char name[80]; /* We need a better interface for this */
static char name[PCIINFO_ENTRY_SIZE]; /* We need a better interface for this */
int r;
cp_grant_id_t gid;
@@ -41,7 +41,9 @@ u16_t did;
if (m.m_type == ENOENT)
{
#if DEBUG
printf("pci_dev_name: got no name\n");
#endif
return NULL; /* No name for this device */
}
if (m.m_type != 0)