Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / lib / libsys / pci_attr_w16.c
blob50cee133dcba258cbe03f15c1fd97831b08bda06
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 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= ipc_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);