• Daniel Drake's avatar
    [PATCH] zd1211rw: Consistency for address space constants · ee302767
    Daniel Drake authored
    The zd1211rw address space has confused me once too many times. This
    patch introduces the following naming notation:
    
    Memory space is split into segments (cr, fw, eeprom) and segments may
    contain components (e.g. boot code inside eeprom). These names are
    arbitrary and only for the description below:
    
    x_START: Absolute address of segment start
    (previously these were named such as CR_BASE_OFFSET, but they weren't
    really offsets unless you were considering them as an offset to 0)
    
    x_LEN: Segment length
    
    x_y_LEN: Length of component y of segment x
    
    x_y_OFFSET: Relative address of component y into segment x. The absolute
    address for this component is (x_START + x_y_OFFSET)
    
    I also renamed EEPROM registers to EEPROM data. These 'registers' can't
    be written to using standard I/O and really represent predefined data
    from the vendor.
    Signed-off-by: default avatarDaniel Drake <dsd@gentoo.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    ee302767
zd_chip.h 28.7 KB