[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] pci: Konfigurationsspeicherzugriff
From: Max Reitz <max@xxxxxxxxxx>
* Für den Zugriff auf den Konfigurationsraum muss man das Register
nicht zweimal an DWord-Grenzen ausrichten
Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
src/modules/pci/pcihw.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/modules/pci/pcihw.c b/src/modules/pci/pcihw.c
index be61251..12cbc0a 100644
--- a/src/modules/pci/pcihw.c
+++ b/src/modules/pci/pcihw.c
@@ -65,7 +65,6 @@ void pci_request_io_ports()
static dword pci_config_read(dword bus, dword device, dword func, dword reg)
{
dword offset = reg % 0x04;
- reg &= ~0x3;
outl(PCI_CONFIG_ADDR,
0x1 << 31
@@ -119,8 +118,6 @@ static inline byte pci_config_read_byte
static void pci_config_write_dword
(dword bus, dword device, dword func, dword reg, dword value)
{
- reg &= ~0x3;
-
outl(PCI_CONFIG_ADDR,
0x1 << 31
| ((bus & 0xFF) << 16)
--
1.6.5