Changeset 1474 for trunk/atahpt.c


Ignore:
Timestamp:
12/18/11 16:01:24 (5 months ago)
Author:
hailfinger
Message:

Add struct flashctx * parameter to all functions accessing flash chips.

All programmer access function prototypes except init have been made
static and moved to the respective file.

A few internal functions in flash chip drivers had chipaddr parameters
which are no longer needed.

The lines touched by flashctx changes have been adjusted to 80 columns
except in header files.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Michael Karcher <flashrom@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/atahpt.c

    r1463 r1474  
    4141}; 
    4242 
     43static void atahpt_chip_writeb(const struct flashctx *flash, uint8_t val, 
     44                               chipaddr addr); 
     45static uint8_t atahpt_chip_readb(const struct flashctx *flash, 
     46                                 const chipaddr addr); 
    4347static const struct par_programmer par_programmer_atahpt = { 
    4448                .chip_readb             = atahpt_chip_readb, 
     
    8185} 
    8286 
    83 void atahpt_chip_writeb(uint8_t val, chipaddr addr) 
     87static void atahpt_chip_writeb(const struct flashctx *flash, uint8_t val, 
     88                               chipaddr addr) 
    8489{ 
    8590        OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR); 
     
    8792} 
    8893 
    89 uint8_t atahpt_chip_readb(const chipaddr addr) 
     94static uint8_t atahpt_chip_readb(const struct flashctx *flash, 
     95                                 const chipaddr addr) 
    9096{ 
    9197        OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR); 
Note: See TracChangeset for help on using the changeset viewer.