diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-18 21:41:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-28 22:10:31 -0400 |
commit | 4ade523a9db32b2a0e3cdeec3413c52e463542c8 (patch) | |
tree | 83da55d3236672934dc003765578d52e48b737bb /vgasrc/bochsvga.h | |
parent | 7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a (diff) | |
download | seabios-4ade523a9db32b2a0e3cdeec3413c52e463542c8.tar.gz |
Remove ioport.h; disperse its contents to other header files.
Move the inb(), insb(), etc. code from ioport.h to x86.h. Move the
PORT_* definitions to their appropriate hardware files.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/bochsvga.h')
-rw-r--r-- | vgasrc/bochsvga.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/vgasrc/bochsvga.h b/vgasrc/bochsvga.h index 87fb6ea8..78b27c80 100644 --- a/vgasrc/bochsvga.h +++ b/vgasrc/bochsvga.h @@ -2,7 +2,6 @@ #define __BOCHSVGA_H #include "types.h" // u8 -#include "ioport.h" // outw #define VBE_DISPI_BANK_ADDRESS 0xA0000 #define VBE_DISPI_BANK_SIZE_KB 64 @@ -41,17 +40,6 @@ #define VBE_DISPI_LFB_PHYSICAL_ADDRESS 0xE0000000 -static inline u16 dispi_read(u16 reg) -{ - outw(reg, VBE_DISPI_IOPORT_INDEX); - return inw(VBE_DISPI_IOPORT_DATA); -} -static inline void dispi_write(u16 reg, u16 val) -{ - outw(reg, VBE_DISPI_IOPORT_INDEX); - outw(val, VBE_DISPI_IOPORT_DATA); -} - struct vgamode_s *bochsvga_find_mode(int mode); void bochsvga_list_modes(u16 seg, u16 *dest, u16 *last); int bochsvga_get_window(struct vgamode_s *vmode_g, int window); |