Changeset 3633

Show
Ignore:
Timestamp:
10/02/08 21:21:30 (3 months ago)
Author:
myles
Message:

Whitespace cleanup (trivial).

Signed-off-by: Myles Watson <mylesgw@…>
Acked-by: Myles Watson <mylesgw@…>

Location:
trunk/coreboot-v2/src/superio
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/coreboot-v2/src/superio/smsc/lpc47b397/lpc47b397.h

    r1946 r3633  
    1 #define LPC47B397_FDC              0   /* Floppy */ 
    2 #define LPC47B397_PP               3   /* Parallel Port */ 
    3 #define LPC47B397_SP1              4   /* Com1 */ 
    4 #define LPC47B397_SP2              5   /* Com2 */ 
    5 #define LPC47B397_KBC              7   /* Keyboard & Mouse */ 
    6 #define LPC47B397_HWM              8   /* HW Monitor */ 
    7 #define LPC47B397_RT              10   /* Runtime reg*/ 
     1#define LPC47B397_FDC           0       /* Floppy */ 
     2#define LPC47B397_PP            3       /* Parallel Port */ 
     3#define LPC47B397_SP1           4       /* Com1 */ 
     4#define LPC47B397_SP2           5       /* Com2 */ 
     5#define LPC47B397_KBC           7       /* Keyboard & Mouse */ 
     6#define LPC47B397_HWM           8       /* HW Monitor */ 
     7#define LPC47B397_RT            10      /* Runtime reg*/ 
  • trunk/coreboot-v2/src/superio/smsc/lpc47b397/lpc47b397_early_gpio.c

    r1946 r3633  
    33        outb(value,iobase+offset); 
    44} 
     5 
    56static unsigned lpc47b397_gpio_offset_in(unsigned iobase, unsigned offset) 
    67{ 
    7         return inb(iobase+offset); 
     8        return inb(iobase+offset); 
    89} 
    910 
     
    1415static void lpc47b397_gpio_index_out(unsigned iobase, unsigned index, unsigned value) 
    1516{ 
    16         outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX); 
     17        outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX); 
    1718        outb(value, iobase+LPC47B397_GPIO_CNTL_DATA); 
    1819} 
     20 
    1921static unsigned lpc47b397_gpio_index_in(unsigned iobase, unsigned index) 
    2022{ 
    2123        outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX); 
    22         return inb(iobase+LPC47B397_GPIO_CNTL_DATA); 
     24        return inb(iobase+LPC47B397_GPIO_CNTL_DATA); 
    2325} 
    2426 
    25  
  • trunk/coreboot-v2/src/superio/smsc/lpc47b397/lpc47b397_early_serial.c

    r1946 r3633  
    44static inline void pnp_enter_conf_state(device_t dev) { 
    55        unsigned port = dev>>8; 
    6         outb(0x55, port); 
     6        outb(0x55, port); 
    77} 
     8 
    89static void pnp_exit_conf_state(device_t dev) { 
    910        unsigned port = dev>>8; 
    10         outb(0xaa, port); 
     11        outb(0xaa, port); 
    1112} 
     13 
    1214static void lpc47b397_enable_serial(device_t dev, unsigned iobase) 
    1315{ 
  • trunk/coreboot-v2/src/superio/smsc/lpc47b397/superio.c

    r3624 r3633  
    11/* Copyright 2000  AG Electronics Ltd. */ 
    22/* Copyright 2003-2004 Linux Networx */ 
    3 /* Copyright 2004 Tyan  
    4  */  
     3/* Copyright 2004 Tyan 
     4 */ 
    55 
    66/* This code is distributed without warranty under the GPL v2 (see COPYING) */ 
     
    2121 
    2222static void pnp_enter_conf_state(device_t dev) { 
    23         outb(0x55, dev->path.u.pnp.port); 
     23        outb(0x55, dev->path.u.pnp.port); 
    2424} 
    2525static void pnp_exit_conf_state(device_t dev) { 
    26         outb(0xaa, dev->path.u.pnp.port); 
     26        outb(0xaa, dev->path.u.pnp.port); 
    2727} 
    2828 
    2929static void pnp_write_index(unsigned long port_base, uint8_t reg, uint8_t value) 
    3030{ 
    31         outb(reg, port_base); 
    32         outb(value, port_base + 1); 
     31        outb(reg, port_base); 
     32        outb(value, port_base + 1); 
    3333} 
    3434 
    3535static uint8_t pnp_read_index(unsigned long port_base, uint8_t reg) 
    3636{ 
    37         outb(reg, port_base); 
    38         return inb(port_base + 1); 
     37        outb(reg, port_base); 
     38        return inb(port_base + 1); 
    3939} 
    4040 
    4141static void enable_hwm_smbus(device_t dev) { 
    4242        /* enable SensorBus register access */ 
    43         uint8_t reg, value; 
    44         reg = 0xf0;  
    45         value = pnp_read_config(dev, reg); 
    46         value |= 0x01; 
    47         pnp_write_config(dev, reg, value); 
    48 }  
     43        uint8_t reg, value; 
     44        reg = 0xf0; 
     45        value = pnp_read_config(dev, reg); 
     46        value |= 0x01; 
     47        pnp_write_config(dev, reg, value); 
     48} 
    4949 
    5050 
     
    5858        conf = dev->chip_info; 
    5959        switch(dev->path.u.pnp.device) { 
    60         case LPC47B397_SP1:  
     60        case LPC47B397_SP1: 
    6161                res0 = find_resource(dev, PNP_IDX_IO0); 
    6262                init_uart8250(res0->base, &conf->com1); 
     
    7272                break; 
    7373        } 
    74          
     74 
    7575} 
    7676 
     
    7878{ 
    7979 
    80         pnp_enter_conf_state(dev);   
     80        pnp_enter_conf_state(dev); 
    8181 
    8282        pnp_set_resources(dev); 
    8383 
    8484#if 0 
    85         dump_pnp_device(dev); 
     85        dump_pnp_device(dev); 
    8686#endif 
    87                  
    88         pnp_exit_conf_state(dev);   
    89          
    90 }        
    91          
     87 
     88        pnp_exit_conf_state(dev); 
     89 
     90} 
     91 
    9292void lpc47b397_pnp_enable_resources(device_t dev) 
    93 {        
    94  
    95         pnp_enter_conf_state(dev); 
    96  
    97         pnp_enable_resources(dev); 
    98  
    99         switch(dev->path.u.pnp.device) { 
    100         case LPC47B397_HWM: 
    101                 printk_debug("lpc47b397 SensorBus Register Access enabled\r\n"); 
     93{ 
     94 
     95        pnp_enter_conf_state(dev); 
     96 
     97        pnp_enable_resources(dev); 
     98 
     99        switch(dev->path.u.pnp.device) { 
     100        case LPC47B397_HWM: 
     101                printk_debug("lpc47b397 SensorBus Register Access enabled\r\n"); 
    102102                pnp_set_logical_device(dev); 
    103                 enable_hwm_smbus(dev); 
    104                 break; 
    105         } 
    106  
    107 #if 0   
    108         dump_pnp_device(dev); 
     103                enable_hwm_smbus(dev); 
     104                break; 
     105        } 
     106 
     107#if 0 
     108        dump_pnp_device(dev); 
    109109#endif 
    110110 
    111         pnp_exit_conf_state(dev); 
     111        pnp_exit_conf_state(dev); 
    112112 
    113113} 
     
    116116{ 
    117117 
    118         pnp_enter_conf_state(dev);    
     118        pnp_enter_conf_state(dev); 
    119119 
    120120        pnp_set_logical_device(dev); 
     
    127127        } 
    128128 
    129         pnp_exit_conf_state(dev);   
    130          
     129        pnp_exit_conf_state(dev); 
     130 
    131131} 
    132132 
     
    150150static int lsmbus_read_byte(device_t dev, uint8_t address) 
    151151{ 
    152         unsigned device; 
    153         struct resource *res; 
     152        unsigned device; 
     153        struct resource *res; 
    154154        int result; 
    155155 
    156         device = dev->path.u.i2c.device; 
    157  
    158         res = find_resource(get_pbus_smbus(dev)->dev, PNP_IDX_IO0); 
     156        device = dev->path.u.i2c.device; 
     157 
     158        res = find_resource(get_pbus_smbus(dev)->dev, PNP_IDX_IO0); 
    159159 
    160160        pnp_write_index(res->base+HWM_INDEX, 0, device); // why 0? 
    161          
     161 
    162162        result = pnp_read_index(res->base+SB_INDEX, address); // we only read it one byte one time 
    163          
    164         return result; 
     163 
     164        return result; 
    165165} 
    166166 
    167167static int lsmbus_write_byte(device_t dev, uint8_t address, uint8_t val) 
    168 {        
    169         unsigned device; 
    170         struct resource *res; 
    171          
    172         device = dev->path.u.i2c.device; 
     168{ 
     169        unsigned device; 
     170        struct resource *res; 
     171 
     172        device = dev->path.u.i2c.device; 
    173173        res = find_resource(get_pbus_smbus(dev)->dev, PNP_IDX_IO0); 
    174174 
    175         pnp_write_index(res->base+HWM_INDEX, 0, device); // why 0? 
    176  
    177         pnp_write_index(res->base+SB_INDEX, address, val); // we only write it one byte one time 
    178          
    179         return 0; 
     175        pnp_write_index(res->base+HWM_INDEX, 0, device); // why 0? 
     176 
     177        pnp_write_index(res->base+SB_INDEX, address, val); // we only write it one byte one time 
     178 
     179        return 0; 
    180180} 
    181181 
    182182static struct smbus_bus_operations lops_smbus_bus = { 
    183 //        .recv_byte  = lsmbus_recv_byte, 
    184 //        .send_byte  = lsmbus_send_byte, 
    185         .read_byte  = lsmbus_read_byte, 
    186         .write_byte = lsmbus_write_byte, 
     183//      .recv_byte  = lsmbus_recv_byte, 
     184//      .send_byte  = lsmbus_send_byte, 
     185        .read_byte  = lsmbus_read_byte, 
     186        .write_byte = lsmbus_write_byte, 
    187187}; 
    188188static struct device_operations ops_hwm = { 
    189         .read_resources   = pnp_read_resources, 
    190         .set_resources    = lpc47b397_pnp_set_resources, 
    191         .enable_resources = lpc47b397_pnp_enable_resources, 
    192         .enable           = lpc47b397_pnp_enable, 
    193         .init             = lpc47b397_init, 
     189        .read_resources   = pnp_read_resources, 
     190        .set_resources    = lpc47b397_pnp_set_resources, 
     191        .enable_resources = lpc47b397_pnp_enable_resources, 
     192        .enable           = lpc47b397_pnp_enable, 
     193        .init             = lpc47b397_init, 
    194194        .scan_bus         = scan_static_bus, 
    195195        .ops_smbus_bus    = &lops_smbus_bus, 
     
    197197 
    198198static struct pnp_info pnp_dev_info[] = { 
    199         { &ops, LPC47B397_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
    200         { &ops, LPC47B397_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
    201         { &ops, LPC47B397_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
    202         { &ops, LPC47B397_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
    203         { &ops, LPC47B397_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, }, 
     199        { &ops, LPC47B397_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
     200        { &ops, LPC47B397_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
     201        { &ops, LPC47B397_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
     202        { &ops, LPC47B397_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
     203        { &ops, LPC47B397_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, }, 
    204204        { &ops_hwm, LPC47B397_HWM,  PNP_IO0, { 0x7f0, 0 }, }, 
    205         { &ops, LPC47B397_RT,   PNP_IO0, { 0x780, 0 }, }, 
     205        { &ops, LPC47B397_RT,   PNP_IO0, { 0x780, 0 }, }, 
    206206}; 
    207207 
  • trunk/coreboot-v2/src/superio/winbond/w83627hf/superio.c

    r3624 r3633  
    11/* Copyright 2000  AG Electronics Ltd. */ 
    22/* Copyright 2003-2004 Linux Networx */ 
    3 /* Copyright 2004 Tyan  
     3/* Copyright 2004 Tyan 
    44   By LYH change from PC87360 */ 
    55/* This code is distributed without warranty under the GPL v2 (see COPYING) */ 
     
    1919 
    2020 
    21 static void pnp_enter_ext_func_mode(device_t dev)  
     21static void pnp_enter_ext_func_mode(device_t dev) 
    2222{ 
    23         outb(0x87, dev->path.u.pnp.port); 
    24         outb(0x87, dev->path.u.pnp.port); 
     23        outb(0x87, dev->path.u.pnp.port); 
     24        outb(0x87, dev->path.u.pnp.port); 
    2525} 
    26 static void pnp_exit_ext_func_mode(device_t dev)  
     26static void pnp_exit_ext_func_mode(device_t dev) 
    2727{ 
    28         outb(0xaa, dev->path.u.pnp.port); 
     28        outb(0xaa, dev->path.u.pnp.port); 
    2929} 
    3030 
    3131static void pnp_write_index(unsigned long port_base, uint8_t reg, uint8_t value) 
    3232{ 
    33         outb(reg, port_base); 
    34         outb(value, port_base + 1); 
     33        outb(reg, port_base); 
     34        outb(value, port_base + 1); 
    3535} 
    3636 
    3737static uint8_t pnp_read_index(unsigned long port_base, uint8_t reg) 
    3838{ 
    39         outb(reg, port_base); 
    40         return inb(port_base + 1); 
    41 }        
     39        outb(reg, port_base); 
     40        return inb(port_base + 1); 
     41} 
    4242 
    4343static void enable_hwm_smbus(device_t dev) { 
     
    5757        get_option(&power_on, "power_on_after_fail"); 
    5858        pnp_enter_ext_func_mode(dev); 
    59         pnp_write_index(dev->path.u.pnp.port,7,0x0a);  
     59        pnp_write_index(dev->path.u.pnp.port,7,0x0a); 
    6060        value = pnp_read_config(dev, 0xE4); 
    6161        value &= ~(3<<5); 
     
    6464        } 
    6565        pnp_write_config(dev, 0xE4, value); 
    66         pnp_exit_ext_func_mode(dev);   
     66        pnp_exit_ext_func_mode(dev); 
    6767} 
    6868 
     
    7373 
    7474        unsigned  hwm_reg_values[] = { 
    75 /*            reg  mask  data */ 
    76               0x40, 0xff, 0x81,  /* start HWM */ 
    77               0x48, 0xaa, 0x2a,  /* set SMBus base to 0x54>>1   */ 
    78               0x4a, 0x21, 0x21,  /* set T2 SMBus base to 0x92>>1 and T3 SMBus base to 0x94>>1 */ 
    79               0x4e, 0x80, 0x00,   
    80               0x43, 0x00, 0xff, 
    81               0x44, 0x00, 0x3f, 
    82               0x4c, 0xbf, 0x18, 
    83               0x4d, 0xff, 0x80   /* turn off beep */ 
    84                                                                              
     75/*              reg  mask  data */ 
     76                0x40, 0xff, 0x81,  /* start HWM */ 
     77                0x48, 0xaa, 0x2a,  /* set SMBus base to 0x54>>1 */ 
     78                0x4a, 0x21, 0x21,  /* set T2 SMBus base to 0x92>>1 and T3 SMBus base to 0x94>>1 */ 
     79                0x4e, 0x80, 0x00, 
     80                0x43, 0x00, 0xff, 
     81                0x44, 0x00, 0x3f, 
     82                0x4c, 0xbf, 0x18, 
     83                0x4d, 0xff, 0x80   /* turn off beep */ 
     84 
    8585        }; 
    8686 
     
    106106        conf = dev->chip_info; 
    107107        switch(dev->path.u.pnp.device) { 
    108         case W83627HF_SP1:  
     108        case W83627HF_SP1: 
    109109                res0 = find_resource(dev, PNP_IDX_IO0); 
    110110                init_uart8250(res0->base, &conf->com1); 
     
    119119                init_pc_keyboard(res0->base, res1->base, &conf->keyboard); 
    120120                break; 
    121         case W83627HF_HWM: 
    122                 res0 = find_resource(dev, PNP_IDX_IO0); 
     121        case W83627HF_HWM: 
     122                res0 = find_resource(dev, PNP_IDX_IO0); 
    123123#define HWM_INDEX_PORT 5 
    124                 init_hwm(res0->base + HWM_INDEX_PORT); 
    125                 break; 
    126         case W83627HF_ACPI: 
    127                 init_acpi(dev); 
    128                 break; 
     124                init_hwm(res0->base + HWM_INDEX_PORT); 
     125                break; 
     126        case W83627HF_ACPI: 
     127                init_acpi(dev); 
     128                break; 
    129129        } 
    130130} 
     
    132132void w83627hf_pnp_set_resources(device_t dev) 
    133133{ 
    134         pnp_enter_ext_func_mode(dev);   
     134        pnp_enter_ext_func_mode(dev); 
    135135        pnp_set_resources(dev); 
    136         pnp_exit_ext_func_mode(dev);   
    137          
    138 }        
    139          
     136        pnp_exit_ext_func_mode(dev); 
     137 
     138} 
     139 
    140140void w83627hf_pnp_enable_resources(device_t dev) 
    141 {        
    142         pnp_enter_ext_func_mode(dev);   
    143         pnp_enable_resources(dev);                
    144         switch(dev->path.u.pnp.device) { 
     141{ 
     142        pnp_enter_ext_func_mode(dev); 
     143        pnp_enable_resources(dev); 
     144        switch(dev->path.u.pnp.device) { 
    145145        case W83627HF_HWM: 
    146146                printk_debug("w83627hf hwm smbus enabled\n"); 
     
    148148                break; 
    149149        } 
    150         pnp_exit_ext_func_mode(dev);   
     150        pnp_exit_ext_func_mode(dev); 
    151151 
    152152} 
     
    155155{ 
    156156 
    157         if (!dev->enabled) { 
    158                 pnp_enter_ext_func_mode(dev);    
     157        if (!dev->enabled) { 
     158                pnp_enter_ext_func_mode(dev); 
    159159 
    160                 pnp_set_logical_device(dev); 
    161                 pnp_set_enable(dev, 0); 
     160                pnp_set_logical_device(dev); 
     161                pnp_set_enable(dev, 0); 
    162162 
    163                 pnp_exit_ext_func_mode(dev);   
    164         } 
     163                pnp_exit_ext_func_mode(dev); 
     164        } 
    165165} 
    166166 
     
    174174 
    175175static struct pnp_info pnp_dev_info[] = { 
    176         { &ops, W83627HF_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
    177         { &ops, W83627HF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
    178         { &ops, W83627HF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
    179         { &ops, W83627HF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
    180         // No 4 { 0,}, 
    181         { &ops, W83627HF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, }, 
    182         { &ops, W83627HF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
    183         { &ops, W83627HF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 0x4}, }, 
    184         { &ops, W83627HF_GPIO2, }, 
    185         { &ops, W83627HF_GPIO3, }, 
    186         { &ops, W83627HF_ACPI, }, 
    187         { &ops, W83627HF_HWM,  PNP_IO0 | PNP_IRQ0, { 0xff8, 0 }, }, 
     176        { &ops, W83627HF_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
     177        { &ops, W83627HF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 
     178        { &ops, W83627HF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
     179        { &ops, W83627HF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
     180        // No 4 { 0,}, 
     181        { &ops, W83627HF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, }, 
     182        { &ops, W83627HF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 
     183        { &ops, W83627HF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 0x4}, }, 
     184        { &ops, W83627HF_GPIO2, }, 
     185        { &ops, W83627HF_GPIO3, }, 
     186        { &ops, W83627HF_ACPI, }, 
     187        { &ops, W83627HF_HWM,  PNP_IO0 | PNP_IRQ0, { 0xff8, 0 }, }, 
    188188}; 
    189189 
  • trunk/coreboot-v2/src/superio/winbond/w83627hf/w83627hf.h

    r1982 r3633  
    1919#define W83627HF_GPCFG2         0xf3 
    2020#define W83627HF_EXTCFG         0xf4 
    21 #define W83627HF_IOEXT1A                0xf5 
    22 #define W83627HF_IOEXT1B                0xf6 
    23 #define W83627HF_IOEXT2A                0xf7 
    24 #define W83627HF_IOEXT2B                0xf8 
     21#define W83627HF_IOEXT1A        0xf5 
     22#define W83627HF_IOEXT1B        0xf6 
     23#define W83627HF_IOEXT2A        0xf7 
     24#define W83627HF_IOEXT2B        0xf8 
    2525 
    2626#define W83627HF_GPDO_0         0x00 
     
    4141#define W83627HF_GPDI_5         0x0f 
    4242#define W83627HF_GPDO_6         0x10 
    43 #define W83627HF_GPDO_7A                0x11 
    44 #define W83627HF_GPDO_7B                0x12 
    45 #define W83627HF_GPDO_7C                0x13 
    46 #define W83627HF_GPDO_7D                0x14 
    47 #define W83627HF_GPDI_7A                0x15 
    48 #define W83627HF_GPDI_7B                0x16 
    49 #define W83627HF_GPDI_7C                0x17 
    50 #define W83627HF_GPDI_7D                0x18 
     43#define W83627HF_GPDO_7A        0x11 
     44#define W83627HF_GPDO_7B        0x12 
     45#define W83627HF_GPDO_7C        0x13 
     46#define W83627HF_GPDO_7D        0x14 
     47#define W83627HF_GPDI_7A        0x15 
     48#define W83627HF_GPDI_7B        0x16 
     49#define W83627HF_GPDI_7C        0x17 
     50#define W83627HF_GPDI_7D        0x18 
    5151 
    5252#define W83627HF_XIOCNF         0xf0 
    53 #define W83627HF_XIOBA1H                0xf1 
    54 #define W83627HF_XIOBA1L                0xf2 
     53#define W83627HF_XIOBA1H        0xf1 
     54#define W83627HF_XIOBA1L        0xf2 
    5555#define W83627HF_XIOSIZE1       0xf3 
    56 #define W83627HF_XIOBA2H                0xf4 
    57 #define W83627HF_XIOBA2L                0xf5 
     56#define W83627HF_XIOBA2H        0xf4 
     57#define W83627HF_XIOBA2L        0xf5 
    5858#define W83627HF_XIOSIZE2       0xf6 
    5959#define W83627HF_XMEMCNF1       0xf7 
    6060#define W83627HF_XMEMCNF2       0xf8 
    61 #define W83627HF_XMEMBAH                0xf9 
    62 #define W83627HF_XMEMBAL                0xfa 
     61#define W83627HF_XMEMBAH        0xf9 
     62#define W83627HF_XMEMBAL        0xfa 
    6363#define W83627HF_XMEMSIZE       0xfb 
    6464#define W83627HF_XIRQMAP1       0xfc 
  • trunk/coreboot-v2/src/superio/winbond/w83627hf/w83627hf_early_serial.c

    r1737 r3633  
    22#include "w83627hf.h" 
    33 
    4 static inline void pnp_enter_ext_func_mode(device_t dev)  
     4static inline void pnp_enter_ext_func_mode(device_t dev) 
    55{ 
    66        unsigned port = dev>>8; 
    7         outb(0x87, port); 
    8         outb(0x87, port); 
     7        outb(0x87, port); 
     8        outb(0x87, port); 
    99} 
    10 static void pnp_exit_ext_func_mode(device_t dev)  
     10 
     11static void pnp_exit_ext_func_mode(device_t dev) 
    1112{ 
    1213        unsigned port = dev>>8; 
    13         outb(0xaa, port); 
     14        outb(0xaa, port); 
    1415} 
     16 
    1517static void w83627hf_enable_serial(device_t dev, unsigned iobase) 
    1618{