Go to the documentation of this file.
21 #include <linux/compiler.h>
22 #include <linux/device.h>
24 #include <linux/types.h>
29 #define TC_OLDCARD 0x3c0000
30 #define TC_NEWCARD 0x000000
32 #define TC_ROM_WIDTH 0x3e0
33 #define TC_ROM_STRIDE 0x3e4
34 #define TC_ROM_SIZE 0x3e8
35 #define TC_SLOT_SIZE 0x3ec
36 #define TC_PATTERN0 0x3f0
37 #define TC_PATTERN1 0x3f4
38 #define TC_PATTERN2 0x3f8
39 #define TC_PATTERN3 0x3fc
40 #define TC_FIRM_VER 0x400
41 #define TC_VENDOR 0x420
42 #define TC_MODULE 0x440
43 #define TC_FIRM_TYPE 0x460
44 #define TC_FLAGS 0x470
45 #define TC_ROM_OBJECTS 0x480
94 #define to_tc_dev(n) container_of(n, struct tc_dev, dev)
110 #define to_tc_driver(drv) container_of(drv, struct tc_driver, driver)
115 static inline unsigned long tc_get_speed(
struct tc_bus *tbus)
117 return 100000 * (10000 / (
unsigned long)tbus->
info.clk_period);