Whitespace cleanup (trivial).

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3633 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Myles Watson 2008-10-02 19:21:30 +00:00
parent d61ada6555
commit cee9438436
7 changed files with 169 additions and 164 deletions

View File

@ -2,6 +2,7 @@ static void lpc47b397_gpio_offset_out(unsigned iobase, unsigned offset, unsigned
{
outb(value,iobase+offset);
}
static unsigned lpc47b397_gpio_offset_in(unsigned iobase, unsigned offset)
{
return inb(iobase+offset);
@ -16,10 +17,10 @@ static void lpc47b397_gpio_index_out(unsigned iobase, unsigned index, unsigned v
outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX);
outb(value, iobase+LPC47B397_GPIO_CNTL_DATA);
}
static unsigned lpc47b397_gpio_index_in(unsigned iobase, unsigned index)
{
outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX);
return inb(iobase+LPC47B397_GPIO_CNTL_DATA);
}

View File

@ -5,10 +5,12 @@ static inline void pnp_enter_conf_state(device_t dev) {
unsigned port = dev>>8;
outb(0x55, port);
}
static void pnp_exit_conf_state(device_t dev) {
unsigned port = dev>>8;
outb(0xaa, port);
}
static void lpc47b397_enable_serial(device_t dev, unsigned iobase)
{
pnp_enter_conf_state(dev);

View File

@ -7,11 +7,13 @@ static inline void pnp_enter_ext_func_mode(device_t dev)
outb(0x87, port);
outb(0x87, port);
}
static void pnp_exit_ext_func_mode(device_t dev)
{
unsigned port = dev>>8;
outb(0xaa, port);
}
static void w83627hf_enable_serial(device_t dev, unsigned iobase)
{
pnp_enter_ext_func_mode(dev);