Subject: sa11x0_com.c
To: None <port-arm@netbsd.org>
From: Herb Peyerl <hpeyerl@beer.org>
List: port-arm
Date: 12/02/2002 16:19:02
In sa11x0_com.c, we have:

        printf("%s: ", sc->sc_dev.dv_xname);
        switch(sc->sc_baseaddr) {
        case 0x80050000:
                printf("SA11x0 UART3\n");
                break;
        case 0x80010000:
                printf("SA11x0 UART1\n");
                break;
        case 0x80030000:
                printf("SA11x0 UART2 (IRDA)\n");
                break;
        default:
                printf("unknown SA11x0 UART\n");
                break;
        }

However, on the HP Jornada, we have:

sacom0 at saip0 addr 0xd000d000-0xd000d023 intr 17
sacom0: unknown SA11x0 UART

So, Emmanuel Dryfus suggested:

        printf("%s: ", sc->sc_dev.dv_xname);
        switch(sc->sc_baseaddr) {
	case 0xd000d000:
        case 0x80050000:
                printf("SA11x0 UART3\n");
                break;
        case 0x80010000:
                printf("SA11x0 UART1\n");
                break;
        case 0x80030000:
                printf("SA11x0 UART2 (IRDA)\n");
                break;
        default:
                printf("unknown SA11x0 UART\n");
                break;
        }

However, I'm thinking that the whole thing just isn't really 
architecture independant and should maybe be something else
entirely.

ideas? comments? Should I just make the change as outlined?


---
Beheading servers since 1999 -- The PC Weasel! http://www.realweasel.com