move benchmarks to their own dir.
[minix.git] / lib / syslib / pci_attr_r32.c
blob0a3aefe493a062ee8aa6d4a83614ac3d4435c8c0
1 /*
2 pci_attr_r32.c
3 */
5 #include "pci.h"
6 #include "syslib.h"
7 #include <minix/sysutil.h>
9 /*===========================================================================*
10 * pci_attr_r32 *
11 *===========================================================================*/
12 PUBLIC u32_t pci_attr_r32(devind, port)
13 int devind;
14 int port;
16 int r;
17 message m;
19 m.m_type= BUSC_PCI_ATTR_R32;
20 m.m2_i1= devind;
21 m.m2_i2= port;
23 r= sendrec(pci_procnr, &m);
24 if (r != 0)
25 panic("syslib/" __FILE__, "pci_attr_r32: can't talk to PCI", r);
27 if (m.m_type != 0)
28 panic("syslib/" __FILE__, "pci_attr_r32: got bad reply from PCI", m.m_type);
30 return m.m2_l1;