Capitalize namespacing structs
This helps to avoid name clashes when breaking up modules into packages.
This commit is contained in:
1 parent
a423cdf1b1
commit
25ee1775f0
16 files changed
+86
-86
No files matched your search
+4
-4
@@ -3,7 +3,7 @@ module hulk.pci;
|
||||
import hulk.cpu;
|
||||
import hulk.klog;
|
||||
|
||||
struct pci
|
||||
struct Pci
|
||||
{
|
||||
/* IO address for PCI configuration address. */
|
||||
enum IO_ADDR_CONFIG_ADDRESS = 0xCF8u;
|
||||
@@ -24,7 +24,7 @@ struct pci
|
||||
if (reg0 != 0xFFFFFFFFu)
|
||||
{
|
||||
ulong reg2 = read_config_register(bus_id, device_id, 2u);
|
||||
klog.writefln("Found PCI device %04x:%04x (%02x:%02x:%02x) at %02u:%02u",
|
||||
Klog.writefln("Found PCI device %04x:%04x (%02x:%02x:%02x) at %02u:%02u",
|
||||
(reg0 & 0xFFFFu), (reg0 >> 16u),
|
||||
(reg2 >> 24u) & 0xFFu,
|
||||
(reg2 >> 16u) & 0xFFu,
|
||||
@@ -35,7 +35,7 @@ struct pci
|
||||
|
||||
public static void initialize()
|
||||
{
|
||||
klog.writefln("Scanning PCI devices...");
|
||||
Klog.writefln("Scanning PCI devices...");
|
||||
for (ulong bus_id = 0u; bus_id < 256u; bus_id++)
|
||||
{
|
||||
for (ulong device_id = 0u; device_id < 32u; device_id++)
|
||||
@@ -43,6 +43,6 @@ struct pci
|
||||
scan(bus_id, device_id);
|
||||
}
|
||||
}
|
||||
klog.writefln("PCI scan complete.");
|
||||
Klog.writefln("PCI scan complete.");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user