git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for dynamic registration of module loaders
[tpg/acess2.git]
/
Kernel
/
drv
/
pci.c
diff --git
a/Kernel/drv/pci.c
b/Kernel/drv/pci.c
index
0519a3e
..
8a86c35
100644
(file)
--- a/
Kernel/drv/pci.c
+++ b/
Kernel/drv/pci.c
@@
-2,8
+2,8
@@
* AcessOS/AcessBasic v0.1
\r
* PCI Bus Driver
\r
*/
\r
* AcessOS/AcessBasic v0.1
\r
* PCI Bus Driver
\r
*/
\r
-#define DEBUG
1
\r
-#include <
common
.h>
\r
+#define DEBUG
0
\r
+#include <
acess
.h>
\r
#include <vfs.h>
\r
#include <fs_devfs.h>
\r
#include <drv_pci.h>
\r
#include <vfs.h>
\r
#include <fs_devfs.h>
\r
#include <drv_pci.h>
\r
@@
-468,7
+468,7
@@
int PCI_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, t_pciDevice *info)
info->Name[2] = '.';
\r
info->Name[3] = '0' + slot/10;
\r
info->Name[4] = '0' + slot%10;
\r
info->Name[2] = '.';
\r
info->Name[3] = '0' + slot/10;
\r
info->Name[4] = '0' + slot%10;
\r
- info->Name[5] = '
.
';
\r
+ info->Name[5] = '
:
';
\r
info->Name[6] = '0' + fcn;
\r
info->Name[7] = '\0';
\r
\r
info->Name[6] = '0' + fcn;
\r
info->Name[7] = '\0';
\r
\r
@@
-553,9
+553,10
@@
Uint8 PCI_CfgReadByte(Uint16 bus, Uint16 dev, Uint16 func, Uint16 offset)
\r
\r
// === EXPORTS ===
\r
\r
\r
// === EXPORTS ===
\r
-/*
\r
+/
/
*
\r
EXPORT(PCI_CountDevices);
\r
EXPORT(PCI_GetDevice);
\r
EXPORT(PCI_CountDevices);
\r
EXPORT(PCI_GetDevice);
\r
+EXPORT(PCI_GetDeviceByClass);
\r
EXPORT(PCI_AssignPort);
\r
EXPORT(PCI_GetIRQ);
\r
EXPORT(PCI_AssignPort);
\r
EXPORT(PCI_GetIRQ);
\r
-*/
\r
+
//
*/
\r
UCC
git Repository :: git.ucc.asn.au