10 #include <minix/sysutil.h>
12 /*===========================================================================*
14 *===========================================================================*/
15 int pci_set_acl(rs_pci
)
16 struct rs_pci
*rs_pci
;
23 if (pci_procnr
== ANY
)
25 r
= ds_retrieve_label_endpt("pci", &endpoint
);
28 panic("pci_set_acl: ds_retrieve_label_endpt failed for 'pci': %d", r
);
30 pci_procnr
= endpoint
;
34 gid
= cpf_grant_direct(pci_procnr
, (vir_bytes
)rs_pci
, sizeof(*rs_pci
),
38 printf("pci_set_acl: cpf_grant_direct failed: %d\n",
43 m
.m_type
= BUSC_PCI_SET_ACL
;
46 r
= sendrec(pci_procnr
, &m
);
49 panic("pci_set_acl: can't talk to PCI: %d", r
);