diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-24 00:12:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-24 00:12:35 +0000 |
commit | 482368b1a8e45430672c58c9a42e7d2004367126 (patch) | |
tree | ce2a1a567d4d62dee7c2e71a46a99cf72cf1d606 /drivers/ieee1394/pcilynx.h | |
parent | e4d0251c6f56ab2e191afb70f80f382793e23f74 (diff) |
Merge with 2.3.47. Guys, this is buggy as shit. You've been warned.
Diffstat (limited to 'drivers/ieee1394/pcilynx.h')
-rw-r--r-- | drivers/ieee1394/pcilynx.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ieee1394/pcilynx.h b/drivers/ieee1394/pcilynx.h index 27cbd0c78..2809bde08 100644 --- a/drivers/ieee1394/pcilynx.h +++ b/drivers/ieee1394/pcilynx.h @@ -348,8 +348,8 @@ struct ti_pcl { struct { u32 control; u32 pointer; - } buffer[13]; -}; + } buffer[13] __attribute__ ((packed)); +} __attribute__ ((packed)); #include <linux/stddef.h> #define pcloffs(MEMBER) (offsetof(struct ti_pcl, MEMBER)) @@ -383,7 +383,11 @@ inline static void get_pcl(const struct ti_lynx *lynx, pcl_t pclid, inline static u32 pcl_bus(const struct ti_lynx *lynx, pcl_t pclid) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) + return lynx->dev->base_address[1] + pclid * sizeof(struct ti_pcl); +#else return lynx->dev->resource[1].start + pclid * sizeof(struct ti_pcl); +#endif } #else /* CONFIG_IEEE1394_PCILYNX_LOCALRAM */ |