Change to using POSIX error codes and adjust the includes.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@91 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David Reid 2002-07-11 21:24:54 +00:00
parent 35d696eaba
commit d71118c74f

View File

@ -11,7 +11,7 @@
#include <vm.h>
#include <devfs.h>
#include <khash.h>
#include <Errors.h>
#include <errno.h>
#include <arch/cpu.h>
#include <arch/int.h>
@ -57,7 +57,7 @@ static int pci_freecookie(void * cookie)
/*
static int pci_seek(void * cookie, off_t pos, seek_type st)
{
return ERR_NOT_ALLOWED;
return EPERM;
}
*/
@ -69,12 +69,12 @@ static int pci_close(void * cookie)
static ssize_t pci_read(void *cookie, off_t pos, void *buf, size_t *len)
{
*len = 0;
return ERR_NOT_ALLOWED;
return EPERM;
}
static ssize_t pci_write(void * cookie, off_t pos, const void *buf, size_t *len)
{
return ERR_NOT_ALLOWED;
return EPERM;
}
static int pci_ioctl(void * _cookie, uint32 op, void *buf, size_t len)
@ -95,7 +95,7 @@ static int pci_ioctl(void * _cookie, uint32 op, void *buf, size_t len)
dump_pci_config(cookie->cfg);
break;
default:
err = ERR_INVALID_ARGS;
err = EINVAL;
goto err;
}