Lines Matching refs:hw_info
114 struct hw_info { struct
135 static struct hw_info hw_info[] = { argument
197 #define NR_INFO ARRAY_SIZE(hw_info)
199 static struct hw_info default_info = { 0, 0, 0, 0, 0 };
200 static struct hw_info dl10019_info = { 0, 0, 0, 0, IS_DL10019|HAS_MII };
201 static struct hw_info dl10022_info = { 0, 0, 0, 0, IS_DL10022|HAS_MII };
279 static struct hw_info *get_hwinfo(struct pcmcia_device *link) in get_hwinfo()
296 hw_info[i].offset & ~(resource_size(link->resource[2])-1)); in get_hwinfo()
297 base = &virt[hw_info[i].offset & (resource_size(link->resource[2])-1)]; in get_hwinfo()
298 if ((readb(base+0) == hw_info[i].a0) && in get_hwinfo()
299 (readb(base+2) == hw_info[i].a1) && in get_hwinfo()
300 (readb(base+4) == hw_info[i].a2)) { in get_hwinfo()
309 return (i < NR_INFO) ? hw_info+i : NULL; in get_hwinfo()
320 static struct hw_info *get_prom(struct pcmcia_device *link) in get_prom()
355 if ((prom[0] == hw_info[i].a0) && in get_prom()
356 (prom[2] == hw_info[i].a1) && in get_prom()
357 (prom[4] == hw_info[i].a2)) in get_prom()
363 return (i < NR_INFO) ? hw_info+i : &default_info; in get_prom()
374 static struct hw_info *get_dl10019(struct pcmcia_device *link) in get_dl10019()
396 static struct hw_info *get_ax88190(struct pcmcia_device *link) in get_ax88190()
427 static struct hw_info *get_hwired(struct pcmcia_device *link) in get_hwired()
492 static struct hw_info *pcnet_try_config(struct pcmcia_device *link, in pcnet_try_config()
496 struct hw_info *local_hw_info; in pcnet_try_config()
559 struct hw_info *local_hw_info; in pcnet_config()