minix/lib/syslib/pci_del_acl.c
Tomas Hruby b900311656 endpoint_t in syslib
- headers use the endpoint_t in syslib.h and the implmentation was using int
  instead. Both uses endpoint_t now

- every variable named like proc, proc_nr or proc_nr_e of type endpoint_t has
  name proc_ep now

- endpoint_t defined as u32_t not int
2009-09-22 21:42:02 +00:00

44 lines
799 B
C

/*
pci_del_acl.c
*/
#include "pci.h"
#include "syslib.h"
#include <unistd.h>
#include <minix/rs.h>
#include <minix/ds.h>
#include <minix/sysutil.h>
/*===========================================================================*
* pci_del_acl *
*===========================================================================*/
PUBLIC int pci_del_acl(proc_ep)
endpoint_t proc_ep;
{
int r;
message m;
u32_t u32;
if (pci_procnr == ANY)
{
r= ds_retrieve_u32("pci", &u32);
if (r != 0)
{
panic("syslib/" __FILE__,
"pci_del_acl: _pm_findproc failed for 'pci'",
r);
}
pci_procnr = u32;
}
m.m_type= BUSC_PCI_DEL_ACL;
m.m1_i1= proc_ep;
r= sendrec(pci_procnr, &m);
if (r != 0)
panic("syslib/" __FILE__, "pci_del_acl: can't talk to PCI", r);
return m.m_type;
}