2007-04-23 14:14:44 +02:00
|
|
|
/*
|
|
|
|
pci_del_acl.c
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "pci.h"
|
|
|
|
#include "syslib.h"
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <minix/rs.h>
|
2007-07-11 15:38:13 +02:00
|
|
|
#include <minix/ds.h>
|
2007-04-23 14:14:44 +02:00
|
|
|
#include <minix/sysutil.h>
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* pci_del_acl *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int pci_del_acl(proc_ep)
|
2009-09-22 23:42:02 +02:00
|
|
|
endpoint_t proc_ep;
|
2007-04-23 14:14:44 +02:00
|
|
|
{
|
|
|
|
int r;
|
|
|
|
message m;
|
2010-04-08 15:41:35 +02:00
|
|
|
endpoint_t endpoint;
|
2007-04-23 14:14:44 +02:00
|
|
|
|
|
|
|
if (pci_procnr == ANY)
|
|
|
|
{
|
2010-04-08 15:41:35 +02:00
|
|
|
r= ds_retrieve_label_endpt("pci", &endpoint);
|
2007-04-23 14:14:44 +02:00
|
|
|
if (r != 0)
|
|
|
|
{
|
2010-04-08 15:41:35 +02:00
|
|
|
panic("pci_del_acl: ds_retrieve_label_endpt failed for 'pci': %d", r);
|
2007-04-23 14:14:44 +02:00
|
|
|
}
|
2010-04-08 15:41:35 +02:00
|
|
|
pci_procnr = endpoint;
|
2007-04-23 14:14:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
m.m_type= BUSC_PCI_DEL_ACL;
|
2009-09-22 23:42:02 +02:00
|
|
|
m.m1_i1= proc_ep;
|
2007-04-23 14:14:44 +02:00
|
|
|
|
|
|
|
r= sendrec(pci_procnr, &m);
|
|
|
|
if (r != 0)
|
2010-03-05 16:05:11 +01:00
|
|
|
panic("pci_del_acl: can't talk to PCI: %d", r);
|
2007-04-23 14:14:44 +02:00
|
|
|
|
|
|
|
return m.m_type;
|
|
|
|
}
|
|
|
|
|