blob: a84f198cabb43cfe7b6ec819260545895a364ae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
pci_ids.c
*/
#include "pci.h"
#include "syslib.h"
#include <minix/sysutil.h>
/*===========================================================================*
* pci_ids *
*===========================================================================*/
void pci_ids(devind, vidp, didp)
int devind;
u16_t *vidp;
u16_t *didp;
{
int r;
message m;
m.m_type= BUSC_PCI_IDS;
m.m1_i1= devind;
r= ipc_sendrec(pci_procnr, &m);
if (r != 0)
panic("pci_ids: can't talk to PCI: %d", r);
if (m.m_type != 0)
panic("pci_ids: got bad reply from PCI: %d", m.m_type);
*vidp= m.m1_i1;
*didp= m.m1_i2;
printf("pci_ids: %04x/%04x\n", *vidp, *didp);
}
|