1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
--- kudzu-1.2.57.1/sbus.c.BAD 2006-12-10 11:28:07.000000000 -0500
+++ kudzu-1.2.57.1/sbus.c 2006-12-10 11:32:42.000000000 -0500
@@ -162,6 +162,7 @@
devClass = CLASS_NETWORK;
} else if (!strcmp(prop, "le")) {
type = "Sun Lance Ethernet";
+ module = "sunlance";
devClass = CLASS_NETWORK;
} else if (!strcmp(prop, "qe")) {
prop = prom_getproperty("channel#", &len);
@@ -206,9 +207,11 @@
devClass = CLASS_SCSI;
} else if (!strcmp(prop, "esp")) {
type = "Sun Enhanced SCSI Processor (ESP)";
+ module = "esp";
devClass = CLASS_SCSI;
} else if (!strcmp(prop, "fas")) {
type = "Sun Swift (ESP)";
+ module = "esp";
devClass = CLASS_SCSI;
} else if (!strcmp(prop, "ptisp")) {
type = "Performance Technologies ISP";
@@ -232,19 +235,19 @@
while ((*prop >= 'A' && *prop <= 'Z') || *prop == ',')
if (*prop++ == ',') break;
if (!strcmp(prop, "audio")) {
- type = "AMD7930";
- module = "amd7930";
+ type = "Sun|AMD7930";
+ module = "snd-sun-amd7930";
devClass = CLASS_AUDIO;
} else if (!strcmp(prop, "CS4231")) {
if (ebus)
- type = "CS4231 EB2 DMA (PCI)";
+ type = "Sun|CS4231 EB2 DMA (PCI)";
else
- type = "CS4231 APC DMA (SBUS)";
- module = "cs4231";
+ type = "Sun|CS4231 APC DMA (SBUS)";
+ module = "snd-sun-cs4231";
devClass = CLASS_AUDIO;
} else if (!strcmp(prop, "DBRIe")) {
- type = "SS10/SS20 DBRI";
- module = "dbri";
+ type = "Sun|SS10/SS20 DBRI";
+ module = "snd-sun-dbri";
devClass = CLASS_AUDIO;
}
prop = prom_getproperty("device_type", &len);
@@ -452,22 +455,6 @@
struct device *sbusProbe( enum deviceClass probeClass, int probeFlags,
struct device *devlist) {
- if (probeClass & CLASS_MOUSE) {
- int fd;
- struct sbusDevice *mousedev;
-
- if ((fd = open("/dev/sunmouse", O_RDONLY)) != -1) {
- /* FIXME: Should probably talk to the mouse to see
- if the connector is not empty. */
- close (fd);
- mousedev = sbusNewDevice(NULL);
- mousedev->type = CLASS_MOUSE;
- mousedev->device = strdup("sunmouse");
- mousedev->desc = strdup("Sun Mouse");
- mousedev->next = devlist;
- devlist = (struct device *)mousedev;
- }
- }
if (
(probeClass & CLASS_OTHER) ||
(probeClass & CLASS_NETWORK) ||
|