vgahw: Fix DACDelay() macro to use the driver's vtable
We don't want to unconditionally use I/O routines here, since if the driver is using mmap'd VGA ports then the I/O handle won't be set up. Tested-by: Jeff Chua <jeff.chua.linux@gmail.com> Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
63a8012947
commit
8db029064b
|
@ -172,8 +172,8 @@ typedef struct _vgaHWRec {
|
||||||
|
|
||||||
#define DACDelay(hw) \
|
#define DACDelay(hw) \
|
||||||
do { \
|
do { \
|
||||||
pci_io_read8((hw)->io, (hw)->IOBase + VGA_IN_STAT_1_OFFSET); \
|
(hw)->readST01((hw)); \
|
||||||
pci_io_read8((hw)->io, (hw)->IOBase + VGA_IN_STAT_1_OFFSET); \
|
(hw)->readST01((hw)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* Function Prototypes */
|
/* Function Prototypes */
|
||||||
|
|
Loading…
Reference in New Issue