Remove building with NOCRYPTO option
[minix.git] / minix / lib / libsys / pci_del_acl.c
blob36c6dd2a627ba46e4c241693551a4cffd7fc3734
1 /*
2 pci_del_acl.c
3 */
5 #include "pci.h"
6 #include "syslib.h"
7 #include <unistd.h>
8 #include <minix/rs.h>
9 #include <minix/ds.h>
10 #include <minix/sysutil.h>
12 /*===========================================================================*
13 * pci_del_acl *
14 *===========================================================================*/
15 int pci_del_acl(proc_ep)
16 endpoint_t proc_ep;
18 int r;
19 message m;
20 endpoint_t endpoint;
22 if (pci_procnr == ANY)
24 r= ds_retrieve_label_endpt("pci", &endpoint);
25 if (r != 0)
27 panic("pci_del_acl: ds_retrieve_label_endpt failed for 'pci': %d", r);
29 pci_procnr = endpoint;
33 m.m_type= BUSC_PCI_DEL_ACL;
34 m.m1_i1= proc_ep;
36 r= ipc_sendrec(pci_procnr, &m);
37 if (r != 0)
38 panic("pci_del_acl: can't talk to PCI: %d", r);
40 return m.m_type;