0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <linux/slab.h>
0010 #include "via_aux.h"
0011
0012
0013 static const char *name = "VT1622(M) Digital TV Encoder";
0014
0015
0016 static void probe(struct via_aux_bus *bus, u8 addr)
0017 {
0018 struct via_aux_drv drv = {
0019 .bus = bus,
0020 .addr = addr,
0021 .name = name};
0022 u8 tmp;
0023
0024 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x03)
0025 return;
0026
0027 printk(KERN_INFO "viafb: Found %s at address 0x%x\n", name, addr);
0028 via_aux_add(&drv);
0029 }
0030
0031 void via_aux_vt1622_probe(struct via_aux_bus *bus)
0032 {
0033 probe(bus, 0x20);
0034 probe(bus, 0x21);
0035 }