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:
@@ -2,6 +2,7 @@ static void lpc47b397_gpio_offset_out(unsigned iobase, unsigned offset, unsigned
|
|||||||
{
|
{
|
||||||
outb(value,iobase+offset);
|
outb(value,iobase+offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned lpc47b397_gpio_offset_in(unsigned iobase, unsigned offset)
|
static unsigned lpc47b397_gpio_offset_in(unsigned iobase, unsigned offset)
|
||||||
{
|
{
|
||||||
return inb(iobase+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(index,iobase+LPC47B397_GPIO_CNTL_INDEX);
|
||||||
outb(value, iobase+LPC47B397_GPIO_CNTL_DATA);
|
outb(value, iobase+LPC47B397_GPIO_CNTL_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned lpc47b397_gpio_index_in(unsigned iobase, unsigned index)
|
static unsigned lpc47b397_gpio_index_in(unsigned iobase, unsigned index)
|
||||||
{
|
{
|
||||||
outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX);
|
outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX);
|
||||||
return inb(iobase+LPC47B397_GPIO_CNTL_DATA);
|
return inb(iobase+LPC47B397_GPIO_CNTL_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -5,10 +5,12 @@ static inline void pnp_enter_conf_state(device_t dev) {
|
|||||||
unsigned port = dev>>8;
|
unsigned port = dev>>8;
|
||||||
outb(0x55, port);
|
outb(0x55, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pnp_exit_conf_state(device_t dev) {
|
static void pnp_exit_conf_state(device_t dev) {
|
||||||
unsigned port = dev>>8;
|
unsigned port = dev>>8;
|
||||||
outb(0xaa, port);
|
outb(0xaa, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lpc47b397_enable_serial(device_t dev, unsigned iobase)
|
static void lpc47b397_enable_serial(device_t dev, unsigned iobase)
|
||||||
{
|
{
|
||||||
pnp_enter_conf_state(dev);
|
pnp_enter_conf_state(dev);
|
||||||
|
@@ -7,11 +7,13 @@ static inline void pnp_enter_ext_func_mode(device_t dev)
|
|||||||
outb(0x87, port);
|
outb(0x87, port);
|
||||||
outb(0x87, port);
|
outb(0x87, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pnp_exit_ext_func_mode(device_t dev)
|
static void pnp_exit_ext_func_mode(device_t dev)
|
||||||
{
|
{
|
||||||
unsigned port = dev>>8;
|
unsigned port = dev>>8;
|
||||||
outb(0xaa, port);
|
outb(0xaa, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void w83627hf_enable_serial(device_t dev, unsigned iobase)
|
static void w83627hf_enable_serial(device_t dev, unsigned iobase)
|
||||||
{
|
{
|
||||||
pnp_enter_ext_func_mode(dev);
|
pnp_enter_ext_func_mode(dev);
|
||||||
|
Reference in New Issue
Block a user