Add lspci command and SI_PCI_INFO getsysinfo call
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user