mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +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 changed files with 5 additions and 10 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -38,11 +38,6 @@
|
||||||
((((dev_fn) & 0xE0) >> 4) | 0xf0)
|
((((dev_fn) & 0xE0) >> 4) | 0xf0)
|
||||||
|
|
||||||
|
|
||||||
#define PCIBIOS_SUCCESSFUL 0x00
|
|
||||||
#define PCIBIOS_DEVICE_NOT_FOUND 0x86
|
|
||||||
#define PCIBIOS_BAD_REGISTER_NUMBER 0x87
|
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
static ULONG BusConfigType = 0; /* undetermined config type */
|
static ULONG BusConfigType = 0; /* undetermined config type */
|
||||||
|
@ -90,7 +85,7 @@ ReadPciConfigUshort(UCHAR Bus,
|
||||||
|
|
||||||
if ((Offset & 1) != 0)
|
if ((Offset & 1) != 0)
|
||||||
{
|
{
|
||||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (BusConfigType)
|
switch (BusConfigType)
|
||||||
|
@ -125,7 +120,7 @@ ReadPciConfigUlong(UCHAR Bus,
|
||||||
|
|
||||||
if ((Offset & 3) != 0)
|
if ((Offset & 3) != 0)
|
||||||
{
|
{
|
||||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (BusConfigType)
|
switch (BusConfigType)
|
||||||
|
@ -190,7 +185,7 @@ WritePciConfigUshort(UCHAR Bus,
|
||||||
|
|
||||||
if ((Offset & 1) != 0)
|
if ((Offset & 1) != 0)
|
||||||
{
|
{
|
||||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (BusConfigType)
|
switch (BusConfigType)
|
||||||
|
@ -225,7 +220,7 @@ WritePciConfigUlong(UCHAR Bus,
|
||||||
|
|
||||||
if ((Offset & 3) != 0)
|
if ((Offset & 3) != 0)
|
||||||
{
|
{
|
||||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (BusConfigType)
|
switch (BusConfigType)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue