summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/isa
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-06-05 17:48:54 +0000
committermarius <marius@FreeBSD.org>2006-06-05 17:48:54 +0000
commitff15bbbd3ebd2041bd998bafb67338c7e87ebd30 (patch)
tree3a4cc9ff2a5351025e163b2ed2eba115651e45ae /sys/sparc64/isa
parentb3286909e2d2ac17302bc0f967f6dff4ec99ea39 (diff)
downloadFreeBSD-src-ff15bbbd3ebd2041bd998bafb67338c7e87ebd30.zip
FreeBSD-src-ff15bbbd3ebd2041bd998bafb67338c7e87ebd30.tar.gz
- Declare the PnP map const.
- Add devices found in V210 to the PnP map. - Don't leak memory if we didn't find a match for a node in the PnP map. MFC after: 2 weeks
Diffstat (limited to 'sys/sparc64/isa')
-rw-r--r--sys/sparc64/isa/isa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sparc64/isa/isa.c b/sys/sparc64/isa/isa.c
index 4147e37..75c736b 100644
--- a/sys/sparc64/isa/isa.c
+++ b/sys/sparc64/isa/isa.c
@@ -153,7 +153,7 @@ isa_init(device_t dev)
}
}
-static struct {
+static const struct {
const char *name;
uint32_t id;
} ofw_isa_pnp_map[] = {
@@ -164,6 +164,8 @@ static struct {
{ "flashprom", 0x0100ae4e }, /* SUN0001 */
{ "parallel", 0x0104d041 }, /* PNP0401 */
{ "serial", 0x0105d041 }, /* PNP0501 */
+ { "i2c", 0x0200ae4e }, /* SUN0002 */
+ { "rmc-comm", 0x0300ae4e }, /* SUN0003 */
{ "kb_ps2", 0x0303d041 }, /* PNP0303 */
{ "kdmouse", 0x030fd041 }, /* PNP0F03 */
{ "power", 0x0c0cd041 }, /* PNP0C0C */
@@ -213,6 +215,7 @@ isa_setup_children(device_t dev, phandle_t parent)
if (ofw_isa_pnp_map[i].name == NULL) {
printf("isa_setup_children: no PnP map entry for node "
"0x%lx: %s\n", (unsigned long)node, name);
+ free(name, M_OFWPROP);
continue;
}
OpenPOWER on IntegriCloud