mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 22:56:37 +00:00
Replaced bios error codes by valid status codes.
svn path=/trunk/; revision=3864
This commit is contained in:
parent
e1ed68fe85
commit
f51d9f66a6
|
@ -1,4 +1,4 @@
|
|||
/* $Id: pci.c,v 1.5 2002/12/09 19:45:55 hbirr Exp $
|
||||
/* $Id: pci.c,v 1.6 2002/12/09 23:15:57 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -38,11 +38,6 @@
|
|||
((((dev_fn) & 0xE0) >> 4) | 0xf0)
|
||||
|
||||
|
||||
#define PCIBIOS_SUCCESSFUL 0x00
|
||||
#define PCIBIOS_DEVICE_NOT_FOUND 0x86
|
||||
#define PCIBIOS_BAD_REGISTER_NUMBER 0x87
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
static ULONG BusConfigType = 0; /* undetermined config type */
|
||||
|
@ -90,7 +85,7 @@ ReadPciConfigUshort(UCHAR Bus,
|
|||
|
||||
if ((Offset & 1) != 0)
|
||||
{
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
switch (BusConfigType)
|
||||
|
@ -125,7 +120,7 @@ ReadPciConfigUlong(UCHAR Bus,
|
|||
|
||||
if ((Offset & 3) != 0)
|
||||
{
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
switch (BusConfigType)
|
||||
|
@ -190,7 +185,7 @@ WritePciConfigUshort(UCHAR Bus,
|
|||
|
||||
if ((Offset & 1) != 0)
|
||||
{
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
switch (BusConfigType)
|
||||
|
@ -225,7 +220,7 @@ WritePciConfigUlong(UCHAR Bus,
|
|||
|
||||
if ((Offset & 3) != 0)
|
||||
{
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
switch (BusConfigType)
|
||||
|
|
Loading…
Reference in a new issue