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 *
|
|
|
|
*===========================================================================*/
|
2009-09-22 23:42:02 +02:00
|
|
|
PUBLIC int pci_del_acl(proc_ep)
|
|
|
|
endpoint_t proc_ep;
|
2007-04-23 14:14:44 +02:00
|
|
|
{
|
|
|
|
int r;
|
|
|
|
message m;
|
2007-07-11 15:38:13 +02:00
|
|
|
u32_t u32;
|
2007-04-23 14:14:44 +02:00
|
|
|
|
|
|
|
if (pci_procnr == ANY)
|
|
|
|
{
|
2007-07-11 15:38:13 +02:00
|
|
|
r= ds_retrieve_u32("pci", &u32);
|
2007-04-23 14:14:44 +02:00
|
|
|
if (r != 0)
|
|
|
|
{
|
2007-07-11 15:38:13 +02:00
|
|
|
panic("syslib/" __FILE__,
|
2007-04-23 14:14:44 +02:00
|
|
|
"pci_del_acl: _pm_findproc failed for 'pci'",
|
|
|
|
r);
|
|
|
|
}
|
2007-07-11 15:38:13 +02:00
|
|
|
pci_procnr = u32;
|
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)
|
2007-07-11 15:38:13 +02:00
|
|
|
panic("syslib/" __FILE__, "pci_del_acl: can't talk to PCI", r);
|
2007-04-23 14:14:44 +02:00
|
|
|
|
|
|
|
return m.m_type;
|
|
|
|
}
|
|
|
|
|