. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / syslib / pci_attr_w8.c
bloba764d3a51aa01b878a50b3ced8d4066e0f090b33
1 /*
2 pci_attr_w8.c
3 */
5 #include "pci.h"
6 #include "syslib.h"
7 #include <minix/sysutil.h>
9 /*===========================================================================*
10 * pci_attr_w8 *
11 *===========================================================================*/
12 PUBLIC void pci_attr_w8(devind, port, value)
13 int devind;
14 int port;
15 u8_t value;
17 int r;
18 message m;
20 m.m_type= BUSC_PCI_ATTR_W8;
21 m.m2_i1= devind;
22 m.m2_i2= port;
23 m.m2_l1= value;
25 r= sendrec(pci_procnr, &m);
26 if (r != 0)
27 panic("pci", "pci_attr_w8: can't talk to PCI", r);
29 if (m.m_type != 0)
30 panic("pci", "pci_attr_w8: got bad reply from PCI", m.m_type);