head	1.27;
access;
symbols
	RELENG_8_4:1.25.0.2
	RELENG_9_1_0_RELEASE:1.21.2.1.4.2
	RELENG_9_1:1.21.2.1.0.4
	RELENG_9_1_BP:1.21.2.1
	RELENG_8_3_0_RELEASE:1.17.2.1.8.1
	RELENG_8_3:1.17.2.1.0.8
	RELENG_8_3_BP:1.17.2.1
	RELENG_9_0_0_RELEASE:1.21.2.1.2.1
	RELENG_9_0:1.21.2.1.0.2
	RELENG_9_0_BP:1.21.2.1
	RELENG_9:1.21.0.2
	RELENG_9_BP:1.21
	RELENG_7_4_0_RELEASE:1.16.12.1
	RELENG_8_2_0_RELEASE:1.17.2.1.6.1
	RELENG_7_4:1.16.0.12
	RELENG_7_4_BP:1.16
	RELENG_8_2:1.17.2.1.0.6
	RELENG_8_2_BP:1.17.2.1
	RELENG_8_1_0_RELEASE:1.17.2.1.4.1
	RELENG_8_1:1.17.2.1.0.4
	RELENG_8_1_BP:1.17.2.1
	RELENG_7_3_0_RELEASE:1.16.10.1
	RELENG_7_3:1.16.0.10
	RELENG_7_3_BP:1.16
	RELENG_8_0_0_RELEASE:1.17.2.1.2.1
	RELENG_8_0:1.17.2.1.0.2
	RELENG_8_0_BP:1.17.2.1
	RELENG_8:1.17.0.2
	RELENG_8_BP:1.17
	RELENG_7_2_0_RELEASE:1.16.8.1
	RELENG_7_2:1.16.0.8
	RELENG_7_2_BP:1.16
	RELENG_7_1_0_RELEASE:1.16.6.1
	RELENG_6_4_0_RELEASE:1.13.12.1
	RELENG_7_1:1.16.0.6
	RELENG_7_1_BP:1.16
	RELENG_6_4:1.13.0.12
	RELENG_6_4_BP:1.13
	RELENG_7_0_0_RELEASE:1.16
	RELENG_6_3_0_RELEASE:1.13
	RELENG_7_0:1.16.0.4
	RELENG_7_0_BP:1.16
	RELENG_6_3:1.13.0.10
	RELENG_6_3_BP:1.13
	RELENG_7:1.16.0.2
	RELENG_7_BP:1.16
	RELENG_6_2_0_RELEASE:1.13
	RELENG_6_2:1.13.0.8
	RELENG_6_2_BP:1.13
	RELENG_5_5_0_RELEASE:1.11
	RELENG_5_5:1.11.0.8
	RELENG_5_5_BP:1.11
	RELENG_6_1_0_RELEASE:1.13
	RELENG_6_1:1.13.0.6
	RELENG_6_1_BP:1.13
	RELENG_6_0_0_RELEASE:1.13
	RELENG_6_0:1.13.0.4
	RELENG_6_0_BP:1.13
	RELENG_6:1.13.0.2
	RELENG_6_BP:1.13
	RELENG_5_4_0_RELEASE:1.11
	RELENG_5_4:1.11.0.6
	RELENG_5_4_BP:1.11
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.4
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.2
	RELENG_5_BP:1.11
	RELENG_5_2_1_RELEASE:1.6
	RELENG_5_2_0_RELEASE:1.6
	RELENG_5_2:1.6.0.2
	RELENG_5_2_BP:1.6;
locks; strict;
comment	@# @;


1.27
date	2013.04.23.00.38.56;	author svnexp;	state Exp;
branches;
next	1.26;

1.26
date	2013.04.20.00.27.30;	author svnexp;	state Exp;
branches;
next	1.25;

1.25
date	2013.03.18.00.28.10;	author svnexp;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2013.03.07.00.30.29;	author svnexp;	state Exp;
branches;
next	1.23;

1.23
date	2012.11.17.01.53.01;	author svnexp;	state Exp;
branches;
next	1.22;

1.22
date	2012.04.18.17.44.05;	author marcel;	state Exp;
branches;
next	1.21;

1.21
date	2011.05.14.01.53.38;	author attilio;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	2010.08.23.06.13.29;	author imp;	state Exp;
branches;
next	1.19;

1.19
date	2010.05.23.20.08.41;	author marius;	state Exp;
branches;
next	1.18;

1.18
date	2010.04.13.21.32.06;	author imp;	state Exp;
branches;
next	1.17;

1.17
date	2008.11.22.21.24.07;	author marcel;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2006.10.16.22.11.53;	author jb;	state Exp;
branches
	1.16.2.1
	1.16.6.1
	1.16.8.1
	1.16.10.1
	1.16.12.1;
next	1.15;

1.15
date	2006.03.30.18.39.24;	author marcel;	state Exp;
branches;
next	1.14;

1.14
date	2006.02.24.01.49.36;	author marcel;	state Exp;
branches;
next	1.13;

1.13
date	2004.11.20.23.38.48;	author marcel;	state Exp;
branches
	1.13.2.1
	1.13.12.1;
next	1.12;

1.12
date	2004.11.17.14.44.10;	author marius;	state Exp;
branches;
next	1.11;

1.11
date	2004.08.14.23.54.27;	author marius;	state Exp;
branches;
next	1.10;

1.10
date	2004.08.12.17.41.31;	author marius;	state Exp;
branches;
next	1.9;

1.9
date	2004.07.10.23.01.35;	author marcel;	state Exp;
branches;
next	1.8;

1.8
date	2004.05.26.00.53.09;	author imp;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.20.22.41.52;	author marcel;	state Exp;
branches;
next	1.6;

1.6
date	2003.09.17.03.00.08;	author marcel;	state Exp;
branches;
next	1.5;

1.5
date	2003.09.15.04.53.11;	author marcel;	state Exp;
branches;
next	1.4;

1.4
date	2003.09.14.16.21.06;	author takawata;	state Exp;
branches;
next	1.3;

1.3
date	2003.09.07.06.50.08;	author marcel;	state Exp;
branches;
next	1.2;

1.2
date	2003.09.07.05.00.32;	author imp;	state Exp;
branches;
next	1.1;

1.1
date	2003.09.06.23.23.26;	author marcel;	state Exp;
branches;
next	;

1.25.2.1
date	2013.03.18.00.28.10;	author svnexp;	state dead;
branches;
next	1.25.2.2;

1.25.2.2
date	2013.03.28.13.05.24;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.21.2.1.2.1
	1.21.2.1.4.1;
next	1.21.2.2;

1.21.2.2
date	2012.11.17.11.37.18;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.21.2.1.2.2;

1.21.2.1.2.2
date	2012.11.17.08.37.15;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.21.2.1.4.2;

1.21.2.1.4.2
date	2012.11.17.08.48.06;	author svnexp;	state Exp;
branches;
next	;

1.17.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.17.2.1.2.1
	1.17.2.1.4.1
	1.17.2.1.6.1
	1.17.2.1.8.1;
next	1.17.2.2;

1.17.2.2
date	2012.11.17.10.36.58;	author svnexp;	state Exp;
branches;
next	;

1.17.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.17.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.17.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.17.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.17.2.1.8.2;

1.17.2.1.8.2
date	2012.11.17.08.25.34;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1
date	2012.11.17.08.06.58;	author svnexp;	state Exp;
branches;
next	;

1.16.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.16.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.16.10.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.16.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.16.12.2;

1.16.12.2
date	2012.11.17.08.17.28;	author svnexp;	state Exp;
branches;
next	;

1.13.2.1
date	2012.11.17.07.44.27;	author svnexp;	state Exp;
branches;
next	;

1.13.12.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;


desc
@@


1.27
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249765
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/sys/modules/uart/Makefile 249765 2013-04-22 13:02:41Z nyan $

.PATH: ${.CURDIR}/../../dev/uart

.if ${MACHINE_CPUARCH} == "sparc64"
uart_bus_ebus=	uart_bus_ebus.c
.endif

.if ${MACHINE_CPUARCH} == "arm"
uart_dev_lpc=	uart_dev_lpc.c
.endif

.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "sparc64"
ofw_bus_if=	ofw_bus_if.h
.endif

.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
_uart_cpu=uart_cpu_x86.c
.else
_uart_cpu=uart_cpu_${MACHINE}.c
.endif
.if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu})
uart_cpu_machine= ${_uart_cpu}
.endif

KMOD=	uart
SRCS=	uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
	uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \
	uart_core.c ${uart_cpu_machine} uart_dbg.c \
	${uart_dev_lpc} uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \
	uart_dev_z8530.c \
	uart_if.c uart_if.h uart_subr.c uart_tty.c

SRCS+=	bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \
	power_if.h pccarddevs.h serdev_if.h
SRCS+=	opt_platform.h

MFILES= dev/pccard/card_if.m dev/pccard/power_if.m dev/pci/pci_if.m \
	dev/ofw/ofw_bus_if.m dev/uart/uart_if.m isa/isa_if.m kern/bus_if.m \
	kern/device_if.m kern/serdev_if.m

.include <bsd.kmod.mk>
@


1.26
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249636
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/uart/Makefile 249636 2013-04-19 05:46:16Z jhibbits $
d9 4
d30 1
a30 1
	uart_dev_lpc.c uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \
@


1.25
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248411
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/uart/Makefile 248411 2013-03-17 06:33:49Z andrew $
d26 1
a26 1
	uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \
@


1.25.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:24 +0000
@
text
@d1 38
@


1.25.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 29
# $FreeBSD: releng/8.4/sys/modules/uart/Makefile 185188 2008-11-22 21:24:07Z marcel $

.PATH: ${.CURDIR}/../../dev/uart

.if ${MACHINE_ARCH} == "sparc64"
uart_bus_ebus=	uart_bus_ebus.c
ofw_bus_if=	ofw_bus_if.h
.endif

KMOD=	uart
SRCS=	uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
	uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \
	uart_core.c uart_dbg.c \
	uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \
	uart_dev_z8530.c \
	uart_if.c uart_if.h uart_subr.c uart_tty.c
.if ${MACHINE} == "sun4v"
SRCS+=	uart_cpu_sparc64.c
.else
SRCS+=	uart_cpu_${MACHINE}.c
.endif
SRCS+=	bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \
	power_if.h pccarddevs.h serdev_if.h

MFILES= dev/pccard/card_if.m dev/pccard/power_if.m dev/pci/pci_if.m \
	dev/ofw/ofw_bus_if.m dev/uart/uart_if.m isa/isa_if.m kern/bus_if.m \
	kern/device_if.m kern/serdev_if.m

.include <bsd.kmod.mk>
@


1.24
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/247891
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/uart/Makefile 247891 2013-03-06 11:44:19Z uqs $
d7 3
@


1.23
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/uart/Makefile 234427 2012-04-18 17:44:05Z marcel $
d29 1
@


1.22
log
@SVN rev 234427 on 2012-04-18 17:44:05Z by marcel

Compensate for the replacement of uart_cpu_{amd64|i386}.c with
uart_cpu_x86.c

Pointy hat: marcel
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.21
log
@SVN rev 221869 on 2011-05-14 01:53:38Z by attilio

Disconnect sun4v architecture from the three.

Some files keep the SUN4V tags as a code reference, for the future,
if any rewamped sun4v support wants to be added again.

Reviewed by:	marius
Tested by:	sbruno
Approved by:	re
@
text
@d10 9
d22 1
a22 1
	uart_core.c uart_dbg.c \
d26 1
a26 3
.if exists(${.CURDIR}/../../dev/uart/uart_cpu_${MACHINE}.c)
SRCS+=	uart_cpu_${MACHINE}.c
.endif
@


1.21.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.21.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/uart/Makefile 221869 2011-05-14 01:53:38Z attilio $
@


1.21.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.21.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/uart/Makefile 221869 2011-05-14 01:53:38Z attilio $
@


1.21.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.21.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/uart/Makefile 221869 2011-05-14 01:53:38Z attilio $
@


1.20
log
@SVN rev 211690 on 2010-08-23 06:13:29Z by imp

MFtbemd:

Use MACHINE_CPUARCH in preference to MACHINE_ARCH.  The former is the
source code location of the machine, the latter the binary output.  In
general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless
we're tesitng for a specific target.  The isn't even moot for
i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86,
although a specific cleanup for that likely would be needed...
@
text
@d17 1
a17 3
.if ${MACHINE} == "sun4v"
SRCS+=	uart_cpu_sparc64.c
.elif exists(${.CURDIR}/../../dev/uart/uart_cpu_${MACHINE}.c)
@


1.19
log
@SVN rev 208462 on 2010-05-23 20:08:41Z by marius

Correct the path to the MD source so r206569 actually works as intended.
@
text
@d5 1
a5 1
.if ${MACHINE_ARCH} == "sparc64"
@


1.18
log
@SVN rev 206569 on 2010-04-13 21:32:06Z by imp

Only compile in uart_cpu_$MACHINE.c if it exists.  I'm not sure how
useful it will be, but we really need to be keying off something other
than MACHINE for this anyway since on arm and mips we have lots of
these running around (one for each SoC family)...
@
text
@d19 1
a19 1
.elif exists(${CURDIR}/uart_cpu_${MACHINE}.c)
@


1.17
log
@SVN rev 185188 on 2008-11-22 21:24:07Z by marcel

Include the QUICC backend in the kernel module.

PR:		127120
@
text
@d19 1
a19 1
.else
@


1.17.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.17.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/modules/uart/Makefile 185188 2008-11-22 21:24:07Z marcel $
@


1.17.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.17.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/modules/uart/Makefile 185188 2008-11-22 21:24:07Z marcel $
@


1.17.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.17.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.17.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.16
log
@In sun4v, use the sparc64 version. We haven't used the serial port on
sun4v yet, so this is a 'best-guess'.
@
text
@d14 2
a15 1
	uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c \
@


1.16.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/modules/uart/Makefile 163445 2006-10-16 22:11:53Z jb $
@


1.16.12.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.16.12.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/modules/uart/Makefile 163445 2006-10-16 22:11:53Z jb $
@


1.16.10.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.16.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.16.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.15
log
@o  Add scc(4) to the build.
o  Add the scc(4) manpage to the build.
o  Update the uart(4) manpage to account for scc(4).
o  Update the uart(4) module build to include support for scc(4).
@
text
@d13 1
a13 1
	uart_core.c uart_cpu_${MACHINE}.c uart_dbg.c \
d16 5
@


1.14
log
@Remove dev/uart/uart_if.m from the default MFILES (in kmod.mk) and
instead define MFILES appropriately for the uart(4) module build.
@
text
@d12 4
a15 3
	uart_bus_pci.c uart_bus_puc.c uart_core.c uart_cpu_${MACHINE}.c \
	uart_dbg.c uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c \
	uart_if.c uart_subr.c uart_tty.c
d17 1
a17 1
	power_if.h uart_if.h pccarddevs.h
d21 1
a21 1
	kern/device_if.m
@


1.13
log
@Stop building uart_dev_i8251.c. It was copied from uart_dev_ns8250.c
without ever being changed to actually work with an i8251. Nobody is
working on this either at the moment, so it's not about to change
soon.
When the code necessary to support the i8251 is committed, this can
be reverted again.
@
text
@d18 4
@


1.13.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/modules/uart/Makefile 137950 2004-11-20 23:38:48Z marcel $
@


1.13.12.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.12
log
@o sparc64/isa/isa.c:
  - The claim in the commit log of rev. 1.11 of dev/uart/uart_cpu_sparc64.c
    etc. that UARTs are the only relevant ISA devices on sparc64 turned out
    to be false. While there are sparc64 models where UARTs are the only
    devices on the ISA bus there are in fact also low-cost models where all
    devices traditionally found on the EBus are hooked up to the ISA bus.
    There are also models that use a mix between EBus and ISA devices with
    things like an AT keyboard controller and other rather interesting
    devices that we might want to support in the futute hook up to the ISA
    bus.
    In order to not need to add sparc64 specific device_identify methods to
    all of the respective ISA drivers and also not add OFW specific code to
    the common ISA code make the sparc64 ISA bus code fake up PnP devices so
    most ISA drivers probe their devices without further changes.
    Unfortunately Sun doesn't adhere to the ISA bindings defined in IEEE
    1275-1994 for the properties of most of the ISA devices which would
    allow to obtain the vendor and logical IDs from their properties. So we
    we just use a simple table which maps the name properties to PnP IDs.
    This could be done in a more sophisticated way but I courrently don't
    see the need for this. [1]
  - Add the children with fully mapped and specified resources (in the OFW
    sense) similar to what is done in the EBus code for the IRQ resources
    of the children as adjusting the resources and the resource list entries
    respectively in isa_alloc_resource() as done perviously causes trouble
    with drivers which use rman_get_start(), pass-through or allocate and
    release resources multiple times, etc.
    Adjusting the resources might be better off in a bus_activate_resource
    method but the common ISA code currently doesn't allow for an
    isa_activate_resource(). [2]
    With this change:
    - ppbus(4) and lpt(4) attach and work (modulo ECP mode, which requires
      real ISADMA code but it currently only consists of stubs on sparc64).
    - atkbdc(4) and atkbdc(4) attach, no further testing done.
    - fdc(4) itself attaches but causes a hang while attaching fd0 also
      when is DMA disabled, further work in fdc(4) is required here as e.g.
      fd0 uses the address of fd1 on sparc64 (not sure if sparc64 supports
      more than one floppy drive at all).
    All of these drivers previously caused panics in the sparc64 ISA code.
  - Minor changes, e.g. use __FBSDID, remove a dupe word in a comment and
    declare one global variable which isn't used outside of isa.c static.
o dev/uart/uart_cpu_sparc64.c and modules/uart/Makefile:
  - Remove the code for registering the UARTs on the ISA bus from the
    sparc64 uart_cpu_identify() again and rely on probing them via PnP.

Original idea by:	tmm [1]
No objections by:	tmm [1], [2]
@
text
@d13 2
a14 2
	uart_dbg.c uart_dev_i8251.c uart_dev_ns8250.c uart_dev_sab82532.c \
	uart_dev_z8530.c uart_if.c uart_subr.c uart_tty.c
@


1.11
log
@- Introduce an uart_cpu_identify() which is implemented in uart_cpu_<arch>.c
  and that can be used as an identify function for all kinds of busses on a
  certain platform. Expect for sparc64 these are only stubs right now. [1]
- For sparc64, add code to its uart_cpu_identify() for registering the on-
  board ISA UARTs and their resources based on information obtained from
  Open Firmware.
  It would be better if this would be done in the OFW ISA code. However, due
  to the common FreeBSD ISA code and PNP-IDs not always being present in the
  properties of the ISA nodes there seems to be no good way to implement that.
  Therefore special casing UARTs as the sole really relevant ISA devices on
  sparc64 seemed reasonable. [2]

Approved by:	marcel
Discussed with:	marcel [1], tmm [2]
Tested by:	make universe
@
text
@a7 2
ofw_pci_if=	ofw_pci_if.h
opt_isa=	opt_isa.h
d15 2
a16 5
SRCS+=	bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} ${ofw_pci_if} \
	${opt_isa} pci_if.h power_if.h uart_if.h pccarddevs.h

opt_isa.h:
	echo "#define DEV_ISA 1" > ${.TARGET}
@


1.10
log
@- Introduce an ofw_bus kobj-interface for retrieving the OFW node and a
  subset ("compatible", "device_type", "model" and "name") of the standard
  properties in drivers for devices on Open Firmware supported busses. The
  standard properties "reg", "interrupts" und "address" are not covered by
  this interface because they are only of interest in the respective bridge
  code. There's a remaining standard property "status" which is unclear how
  to support properly but which also isn't used in FreeBSD at present.
  This ofw_bus kobj-interface allows to replace the various (ebus_get_node(),
  ofw_pci_get_node(), etc.) and partially inconsistent (central_get_type()
  vs. sbus_get_device_type(), etc.) existing IVAR ones with a common one.
  This in turn allows to simplify and remove code-duplication in drivers for
  devices that can hang off of more than one OFW supported bus.
- Convert the sparc64 Central, EBus, FHC, PCI and SBus bus drivers and the
  drivers for their children to use the ofw_bus kobj-interface. The IVAR-
  interfaces of the Central, EBus and FHC are entirely replaced by this. The
  PCI bus driver used its own kobj-interface and now also uses the ofw_bus
  one. The IVARs special to the SBus, e.g. for retrieving the burst size,
  remain.
  Beware: this causes an ABI-breakage for modules of drivers which used the
  IVAR-interfaces, i.e. esp(4), hme(4), isp(4) and uart(4), which need to be
  recompiled.
  The style-inconsistencies introduced in some of the bus drivers will be
  fixed by tmm@@ in a generic clean-up of the respective drivers later (he
  requested to add the changes in the "new" style).
- Convert the powerpc MacIO bus driver and the drivers for its children to
  use the ofw_bus kobj-interface. This invloves removing the IVARs related
  to the "reg" property which were unused and a leftover from the NetBSD
  origini of the code. There's no ABI-breakage caused by this because none
  of these driver are currently built as modules.
  There are other powerpc bus drivers which can be converted to the ofw_bus
  kobj-interface, e.g. the PCI bus driver, which should be done together
  with converting powerpc to use the OFW PCI code from sparc64.
- Make the SBus and FHC front-end of zs(4) and the sparc64 eeprom(4) take
  advantage of the ofw_bus kobj-interface and simplify them a bit.

Reviewed by:	grehan, tmm
Approved by:	re (scottl)
Discussed with:	tmm
Tested with:	Sun AX1105, AXe, Ultra 2, Ultra 60; PPC cross-build on i386
@
text
@d8 2
d17 5
a21 2
SRCS+=	bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \
	power_if.h uart_if.h pccarddevs.h
@


1.9
log
@Build uart_dbg.c for remote GDB support.
@
text
@d7 1
d15 2
a16 2
SRCS+=	bus_if.h device_if.h isa_if.h pci_if.h uart_if.h power_if.h card_if.h \
	pccarddevs.h
@


1.8
log
@Move to generating pccarddevs.h on the fly, both for the kernel and
the modules.

Also generate usbdevs.h automatically now, but a non-kernel file is
stopping that at the moment.
@
text
@d12 1
a12 1
	uart_dev_i8251.c uart_dev_ns8250.c uart_dev_sab82532.c \
@


1.7
log
@Add uart_subr.c
@
text
@d14 2
a15 1
SRCS+=	bus_if.h device_if.h isa_if.h pci_if.h uart_if.h power_if.h card_if.h
@


1.6
log
@Only build the ebus driver on sparc64. It includes a header directly
from the sparc64 subtree, which breaks building non-sparc64 platforms
in the event the sparc64 subtree does not exist.
The problem is specific to the module, because non-module builds are
affected by the presence or absence of "device ebus" in the kernel
configuration.

PR: kern/56869
@
text
@d13 1
a13 1
	uart_dev_z8530.c uart_if.c uart_tty.c
@


1.5
log
@Sort: build uart_bus_pccard.c before uart_bus_pci.c.
@
text
@d5 4
d10 1
a10 1
SRCS=	uart_bus_acpi.c uart_bus_ebus.c uart_bus_isa.c uart_bus_pccard.c \
@


1.4
log
@Add uart pccard bus attachment,based on sio_pccard.c .

Wrote at: Hakone.
Powered by: Warner Losh's scotch whisky.
Tested by: nork
@
text
@d6 2
a7 2
SRCS=	uart_bus_acpi.c uart_bus_ebus.c uart_bus_isa.c uart_bus_pci.c \
	uart_bus_pccard.c uart_bus_puc.c uart_core.c uart_cpu_${MACHINE}.c \
@


1.3
log
@Now that PC98 has it's own MD file, use uart_cpu_${MACHINE}.c and
not uart_cpu_${MACHINE_ARCH}.c.
@
text
@d7 4
a10 4
	uart_bus_puc.c uart_core.c uart_cpu_${MACHINE}.c uart_dev_i8251.c \
	uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c uart_if.c \
	uart_tty.c
SRCS+=	bus_if.h device_if.h isa_if.h pci_if.h uart_if.h
@


1.2
log
@add i8251
@
text
@d7 1
a7 2
	uart_bus_puc.c uart_core.c uart_cpu_${MACHINE_ARCH}.c \
	uart_dev_i8251.c \
@


1.1
log
@Hook-up the uart(4) driver to the build. For a detailed description
of what uart(4) is and/or is not see the initial commit log of one
of the files in sys/dev/uart (or see share/man/man4/uart.4).

Note that currently pc98 shares the MD file with i386. This needs
to change when pc98 support is fleshed-out to properly support the
various UARTs. A good example is sparc64 in this respect.

We build uart(4) as a module on all platforms. This may break
the ppc port. That depends on whether they do actually build
modules.

To use uart(4) on alpha, one must use the NO_SIO option.
@
text
@d8 1
@

