26 static u8 cursor_row=0, cursor_col=0;
32 if (cursor_row != ((
X86_EDX >> 8) & 0xff) ||
33 cursor_col >= (
X86_EDX & 0xff)) {
36 cursor_row = (
X86_EDX >> 8) & 0xff;
43 X86_EDX = (cursor_row << 8) | cursor_col;
98 #define PCI_CONFIG_SPACE_TYPE1 (1 << 0)
99 #define PCI_SPECIAL_CYCLE_TYPE1 (1 << 4)
103 unsigned short func = (
unsigned short)
X86_EAX;
105 unsigned short devid, vendorid, devfn;
136 unsigned short busdevfn;
197 #if CONFIG(REALMODE_DEBUG)
#define printk(level,...)
DEVTREE_CONST struct device * pcidev_path_on_bus(unsigned int bus, pci_devfn_t devfn)
struct device * dev_find_device(u16 vendor, u16 device, struct device *from)
Find a device of a given vendor and type.
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
DEVTREE_CONST struct bus * bus
#define PCI_SPECIAL_CYCLE_TYPE1
#define PCI_CONFIG_SPACE_TYPE1