secondary cache feature in vm.
[minix.git] / lib / libsys / pci_attr_w16.c
blobc371c9e70be73ebca96ae88dfe6df27cbb5a7d38
1 /*
2 pci_attr_w16.c
3 */
5 #include "pci.h"
6 #include "syslib.h"
7 #include <minix/sysutil.h>
9 /*===========================================================================*
10 * pci_attr_w16 *
11 *===========================================================================*/
12 PUBLIC void pci_attr_w16(int devind, int port, u16_t value)
14 int r;
15 message m;
17 m.m_type= BUSC_PCI_ATTR_W16;
18 m.m2_i1= devind;
19 m.m2_i2= port;
20 m.m2_l1= value;
22 r= sendrec(pci_procnr, &m);
23 if (r != 0)
24 panic("pci_attr_w16: can't talk to PCI: %d", r);
26 if (m.m_type != 0)
27 panic("pci_attr_w16: got bad reply from PCI: %d", m.m_type);