diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-22 19:55:15 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-17 07:49:27 -0400 |
commit | 3e94794355724f77dc6cbb5ad956f7c72d8313a4 (patch) | |
tree | 9a8bf2a3c2ead985b9f386fb196db0918da48270 /include | |
parent | cfdfa86536d2fbc8102780ec15faea185e957d3d (diff) | |
download | linux-3e94794355724f77dc6cbb5ad956f7c72d8313a4.tar.bz2 |
smc91x: introduce platform data flags V2
This patch introduces struct smc91x_platdata and modifies the driver so
bus width is checked during run time using SMC_nBIT() instead of
SMC_CAN_USE_nBIT.
V2 keeps static configuration lean using SMC_DYNAMIC_BUS_CONFIG.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/smc91x.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/smc91x.h b/include/linux/smc91x.h new file mode 100644 index 000000000000..8e0556b8781c --- /dev/null +++ b/include/linux/smc91x.h @@ -0,0 +1,13 @@ +#ifndef __SMC91X_H__ +#define __SMC91X_H__ + +#define SMC91X_USE_8BIT (1 << 0) +#define SMC91X_USE_16BIT (1 << 1) +#define SMC91X_USE_32BIT (1 << 2) + +struct smc91x_platdata { + unsigned long flags; + unsigned long irq_flags; /* IRQF_... */ +}; + +#endif /* __SMC91X_H__ */ |