Date: Thu, 26 Jun 2008 08:13:52 GMT From: Andrew Turner <andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 144128 for review Message-ID: <200806260813.m5Q8DqY5055056@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=144128 Change 144128 by andrew@andrew_bender on 2008/06/26 08:12:57 Allow access to all UART registers Affected files ... .. //depot/projects/arm/src/sys/arm/s3c2xx0/neo1973_machdep.c#3 edit Differences ... ==== //depot/projects/arm/src/sys/arm/s3c2xx0/neo1973_machdep.c#3 (text+ko) ==== @@ -137,15 +137,18 @@ extern vm_offset_t s3c2410_uart_vaddr; +#define _A(a) ((a) & ~L1_S_OFFSET) +#define _S(s) (((s) + L1_S_SIZE - 1) & ~(L1_S_SIZE-1)) + /* Static device mappings. */ static const struct pmap_devmap neo1973_devmap[] = { { /* * Map the UART to VA == PA */ - S3C2410_UART0_BASE, - S3C2410_UART0_BASE, - 0x100000, + _A(S3C2410_UART0_BASE), + _A(S3C2410_UART0_BASE), + _S(S3C2410_UART_BASE(3) - S3C2410_UART0_BASE), VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE, }, @@ -158,6 +161,9 @@ } }; +#undef _A +#undef _S + #ifdef DDB extern vm_offset_t ksym_start, ksym_end; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806260813.m5Q8DqY5055056>