summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/lib/cfgadm_plugins/Makefile.com8
-rw-r--r--usr/src/lib/libc_psr/sun4u/Makefile.com8
-rw-r--r--usr/src/lib/libmd/sun4u/Makefile.links3
-rw-r--r--usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile3
-rw-r--r--usr/src/pkgdefs/SUNWcakr.u/prototype_com5
-rw-r--r--usr/src/pkgdefs/SUNWcar.u/prototype_com9
-rw-r--r--usr/src/pkgdefs/SUNWhea/prototype_sparc2
-rw-r--r--usr/src/pkgdefs/SUNWkvm.u/prototype_com5
-rw-r--r--usr/src/pkgdefs/SUNWpiclu/prototype_sparc3
-rw-r--r--usr/src/pkgdefs/SUNWpstl.u/prototype_sparc9
-rw-r--r--usr/src/psm/stand/boot/sparcv9/sun4u/Makefile3
-rw-r--r--usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile3
-rw-r--r--usr/src/uts/sun4u/Makefile.sun4u.shared1
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile100
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile.douglas28
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile.douglas.shared74
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile.files42
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile.rules63
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile.targ28
-rw-r--r--usr/src/uts/sun4u/douglas/Makefile.targ.shared84
-rw-r--r--usr/src/uts/sun4u/douglas/os/douglas.c178
-rw-r--r--usr/src/uts/sun4u/douglas/os/platmod/Makefile109
-rw-r--r--usr/src/uts/sun4u/douglas/platmod/Makefile109
23 files changed, 860 insertions, 17 deletions
diff --git a/usr/src/lib/cfgadm_plugins/Makefile.com b/usr/src/lib/cfgadm_plugins/Makefile.com
index a7c2d5fbb8..af6647d828 100644
--- a/usr/src/lib/cfgadm_plugins/Makefile.com
+++ b/usr/src/lib/cfgadm_plugins/Makefile.com
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -66,6 +65,7 @@ LINKED_PLATFORMS += SUNW,Netra-T12
LINKED_PLATFORMS += SUNW,Netra-T4
LINKED_PLATFORMS += SUNW,Netra-CP2300
LINKED_PLATFORMS += SUNW,Netra-CP3010
+LINKED_PLATFORMS += TAD,SPARCLE
LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
diff --git a/usr/src/lib/libc_psr/sun4u/Makefile.com b/usr/src/lib/libc_psr/sun4u/Makefile.com
index 3e0545704b..b9c0b7dc6d 100644
--- a/usr/src/lib/libc_psr/sun4u/Makefile.com
+++ b/usr/src/lib/libc_psr/sun4u/Makefile.com
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -69,6 +68,7 @@ LINKED_PLATFORMS += SUNW,UltraSPARC-IIe-NetraCT-60
LINKED_PLATFORMS += SUNW,Sun-Blade-100
LINKED_PLATFORMS += SUNW,Serverblade1
LINKED_PLATFORMS += SUNW,Netra-CP2300
+LINKED_PLATFORMS += TAD,SPARCLE
#
# install rule
diff --git a/usr/src/lib/libmd/sun4u/Makefile.links b/usr/src/lib/libmd/sun4u/Makefile.links
index d1ff848458..7f774387e5 100644
--- a/usr/src/lib/libmd/sun4u/Makefile.links
+++ b/usr/src/lib/libmd/sun4u/Makefile.links
@@ -21,7 +21,7 @@
#
# ident "%Z%%M% %I% %E% SMI"
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# lib/libmd/Makefile.sun4u.links
@@ -64,3 +64,4 @@ LINKED_PLATFORMS += SUNW,Netra-T12
LINKED_PLATFORMS += SUNW,Netra-T4
LINKED_PLATFORMS += SUNW,Netra-CP2300
LINKED_PLATFORMS += SUNW,Netra-CP3010
+LINKED_PLATFORMS += TAD,SPARCLE
diff --git a/usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile b/usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile
index b028d2276b..109e94afe9 100644
--- a/usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile
+++ b/usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile
@@ -19,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -57,6 +57,7 @@ LINKED_PLATFORMS += SUNW,Serverblade1
LINKED_PLATFORMS += SUNW,Sun-Fire-V240
LINKED_PLATFORMS += SUNW,Sun-Fire-V250
LINKED_PLATFORMS += SUNW,Sun-Fire-V440
+LINKED_PLATFORMS += TAD,SPARCLE
LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
diff --git a/usr/src/pkgdefs/SUNWcakr.u/prototype_com b/usr/src/pkgdefs/SUNWcakr.u/prototype_com
index db363975e3..2187795a5b 100644
--- a/usr/src/pkgdefs/SUNWcakr.u/prototype_com
+++ b/usr/src/pkgdefs/SUNWcakr.u/prototype_com
@@ -387,6 +387,11 @@ d none platform/SUNW,UltraAX-i2/kernel 755 root sys
d none platform/SUNW,UltraAX-i2/kernel/misc 755 root sys
d none platform/SUNW,UltraAX-i2/kernel/misc/sparcv9 755 root sys
f none platform/SUNW,UltraAX-i2/kernel/misc/sparcv9/platmod 755 root sys
+d none platform/TAD,SPARCLE 755 root sys
+d none platform/TAD,SPARCLE/kernel 755 root sys
+d none platform/TAD,SPARCLE/kernel/misc 755 root sys
+d none platform/TAD,SPARCLE/kernel/misc/sparcv9 755 root sys
+f none platform/TAD,SPARCLE/kernel/misc/sparcv9/platmod 755 root sys
d none platform/sun4u 755 root sys
d none platform/sun4u-us3 755 root sys
d none platform/sun4u-us3/kernel 755 root sys
diff --git a/usr/src/pkgdefs/SUNWcar.u/prototype_com b/usr/src/pkgdefs/SUNWcar.u/prototype_com
index 98216552a8..9d8469bfb2 100644
--- a/usr/src/pkgdefs/SUNWcar.u/prototype_com
+++ b/usr/src/pkgdefs/SUNWcar.u/prototype_com
@@ -19,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -92,6 +92,7 @@ d none platform/SUNW,Ultra-Enterprise-10000 755 root sys
d none platform/SUNW,UltraSPARC-IIe-NetraCT-40 755 root sys
d none platform/SUNW,UltraSPARC-IIe-NetraCT-60 755 root sys
d none platform/SUNW,UltraSPARC-IIi-Netract 755 root sys
+d none platform/TAD,SPARCLE 755 root sys
s none platform/SUNW,Sun-Fire-V210=SUNW,Sun-Fire-V240
s none platform/SUNW,Netra-240=SUNW,Sun-Fire-V240
s none platform/SUNW,Netra-210=SUNW,Sun-Fire-V240
@@ -132,6 +133,7 @@ d none platform/SUNW,UltraSPARC-IIi-Netract/lib/sparcv9 755 root bin
d none platform/SUNW,Netra-CP2300/lib/sparcv9 755 root bin
d none platform/SUNW,Netra-CP3010/lib/sparcv9 755 root bin
d none platform/SUNW,SPARC-Enterprise/lib/sparcv9 755 root bin
+d none platform/TAD,SPARCLE/lib/sparcv9 755 root bin
d none platform/sun4u-us3/lib/sparcv9 755 root bin
d none platform/sun4u-us3/lib/sparcv9/libc_psr 755 root bin
f none platform/sun4u/lib/sparcv9/libc_psr.so.1 755 root bin
@@ -174,6 +176,7 @@ s none platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/sparcv9/libc_psr.so.1=../../.
s none platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/sparcv9/libc_psr.so.1=../../../sun4u/lib/sparcv9/libc_psr.so.1
s none platform/SUNW,UltraSPARC-IIi-Netract/lib/sparcv9/libc_psr.so.1=../../../sun4u/lib/sparcv9/libc_psr.so.1
s none platform/SUNW,Netra-CP2300/lib/sparcv9/libc_psr.so.1=../../../sun4u/lib/sparcv9/libc_psr.so.1
+s none platform/TAD,SPARCLE/lib/sparcv9/libc_psr.so.1=../../../sun4u/lib/sparcv9/libc_psr.so.1
f none platform/sun4u/lib/sparcv9/libmd_psr.so.1 755 root bin
s none platform/SUNW,Netra-T12/lib/sparcv9/libmd_psr.so.1=../../../sun4u/lib/sparcv9/libmd_psr.so.1
s none platform/SUNW,Netra-T4/lib/sparcv9/libmd_psr.so.1=../../../sun4u/lib/sparcv9/libmd_psr.so.1
@@ -208,6 +211,7 @@ s none platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/sparcv9/libmd_psr.so.1=../../
s none platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/sparcv9/libmd_psr.so.1=../../../sun4u/lib/sparcv9/libmd_psr.so.1
s none platform/SUNW,UltraSPARC-IIi-Netract/lib/sparcv9/libmd_psr.so.1=../../../sun4u/lib/sparcv9/libmd_psr.so.1
s none platform/SUNW,Netra-CP2300/lib/sparcv9/libmd_psr.so.1=../../../sun4u/lib/sparcv9/libmd_psr.so.1
+s none platform/TAD,SPARCLE/lib/sparcv9/libmd_psr.so.1=../../../sun4u/lib/sparcv9/libmd_psr.so.1
#
# lib/libc_psr.so.1 and links to it for each sun4u platform
#
@@ -246,6 +250,7 @@ d none platform/SUNW,UltraSPARC-IIi-Netract/lib 755 root bin
d none platform/SUNW,Netra-CP2300/lib 755 root bin
d none platform/SUNW,Netra-CP3010/lib 755 root bin
d none platform/SUNW,SPARC-Enterprise/lib 755 root bin
+d none platform/TAD,SPARCLE/lib 755 root bin
f none platform/sun4u/lib/libc_psr.so.1 755 root bin
d none platform/sun4u-us3/lib 755 root sys
v none platform/sun4u-us3/lib/libc_psr.so.1 755 root bin
@@ -288,6 +293,7 @@ s none platform/SUNW,UltraSPARC-IIi-Netract/lib/libc_psr.so.1=../../sun4u/lib/li
s none platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/libc_psr.so.1=../../sun4u/lib/libc_psr.so.1
s none platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/libc_psr.so.1=../../sun4u/lib/libc_psr.so.1
s none platform/SUNW,Netra-CP2300/lib/libc_psr.so.1=../../sun4u/lib/libc_psr.so.1
+s none platform/TAD,SPARCLE/lib/libc_psr.so.1=../../sun4u/lib/libc_psr.so.1
#
# lib/libmd_psr.so.1 and links to it for each sun4u platform
#
@@ -325,3 +331,4 @@ s none platform/SUNW,UltraSPARC-IIi-Netract/lib/libmd_psr.so.1=../../sun4u/lib/l
s none platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/libmd_psr.so.1=../../sun4u/lib/libmd_psr.so.1
s none platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/libmd_psr.so.1=../../sun4u/lib/libmd_psr.so.1
s none platform/SUNW,Netra-CP2300/lib/libmd_psr.so.1=../../sun4u/lib/libmd_psr.so.1
+s none platform/TAD,SPARCLE/lib/libmd_psr.so.1=../../sun4u/lib/libmd_psr.so.1
diff --git a/usr/src/pkgdefs/SUNWhea/prototype_sparc b/usr/src/pkgdefs/SUNWhea/prototype_sparc
index 695d5e4516..f643c9efcf 100644
--- a/usr/src/pkgdefs/SUNWhea/prototype_sparc
+++ b/usr/src/pkgdefs/SUNWhea/prototype_sparc
@@ -176,6 +176,8 @@ d none usr/platform/SUNW,Netra-CP2300 755 root sys
d none usr/platform/SUNW,Netra-CP2300/include 755 root bin
d none usr/platform/SUNW,Netra-CP3010 755 root sys
d none usr/platform/SUNW,Netra-CP3010/include 755 root bin
+d none usr/platform/TAD,SPARCLE 755 root sys
+s none usr/platform/TAD,SPARCLE/include=../sun4u/include
d none usr/platform/sun4u/include/sys 755 root bin
f none usr/platform/sun4u/include/sys/ac.h 644 root bin
f none usr/platform/sun4u/include/sys/async.h 644 root bin
diff --git a/usr/src/pkgdefs/SUNWkvm.u/prototype_com b/usr/src/pkgdefs/SUNWkvm.u/prototype_com
index 04066f8be5..0e316a23bb 100644
--- a/usr/src/pkgdefs/SUNWkvm.u/prototype_com
+++ b/usr/src/pkgdefs/SUNWkvm.u/prototype_com
@@ -82,6 +82,7 @@ d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40 755 root sys
d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60 755 root sys
d none usr/platform/SUNW,Netra-CP2300 755 root sys
d none usr/platform/SUNW,Netra-CP3010 755 root sys
+d none usr/platform/TAD,SPARCLE 755 root sys
#
# create sun4u/sbin and links to it from each sun4u platform
#
@@ -131,6 +132,7 @@ s none usr/platform/SUNW,Netra-CP2300/sbin/trapstat=../../sun4u/sbin/trapstat
d none usr/platform/SUNW,Netra-CP3010/sbin 755 root bin
s none usr/platform/SUNW,Netra-CP3010/sbin/prtdiag=../../sun4u/sbin/prtdiag
s none usr/platform/SUNW,Netra-CP3010/sbin/trapstat=../../sun4u/sbin/trapstat
+s none usr/platform/TAD,SPARCLE/sbin=../sun4u/sbin
#
f none usr/platform/sun4u/sbin/trapstat 555 root bin
@@ -194,6 +196,7 @@ d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib 755 root bin
d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib 755 root bin
d none usr/platform/SUNW,Netra-CP2300/lib 755 root bin
d none usr/platform/SUNW,Netra-CP3010/lib 755 root bin
+d none usr/platform/TAD,SPARCLE/lib 755 root bin
#
# create sun4u/lib/cfgadm and links to it for each sun4u platform
#
@@ -228,6 +231,7 @@ s none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/cfgadm=../../sun4u/lib/cf
s none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/cfgadm=../../sun4u/lib/cfgadm
s none usr/platform/SUNW,Netra-CP2300/lib/cfgadm=../../sun4u/lib/cfgadm
s none usr/platform/SUNW,Netra-CP3010/lib/cfgadm=../../sun4u/lib/cfgadm
+s none usr/platform/TAD,SPARCLE/lib/cfgadm=../../sun4u/lib/cfgadm
#
f none usr/platform/sun4u/lib/cfgadm/sysctrl.so.1 755 root bin
s none usr/platform/sun4u/lib/cfgadm/sysctrl.so=./sysctrl.so.1
@@ -279,6 +283,7 @@ s none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/fs=../../sun4u/lib/fs
s none usr/platform/SUNW,Netra-CP2300/lib/fs=../../sun4u/lib/fs
s none usr/platform/SUNW,Netra-CP3010/lib/fs=../../sun4u/lib/fs
s none usr/platform/SUNW,SPARC-Enterprise/lib/fs=../../sun4u/lib/fs
+s none usr/platform/TAD,SPARCLE/lib/fs=../../sun4u/lib/fs
#
d none usr/platform/sun4u/lib/fs/ufs 755 root bin
f none usr/platform/sun4u/lib/fs/ufs/bootblk 444 root sys
diff --git a/usr/src/pkgdefs/SUNWpiclu/prototype_sparc b/usr/src/pkgdefs/SUNWpiclu/prototype_sparc
index 1619d6a9e4..2340b3e746 100644
--- a/usr/src/pkgdefs/SUNWpiclu/prototype_sparc
+++ b/usr/src/pkgdefs/SUNWpiclu/prototype_sparc
@@ -391,6 +391,9 @@ f none usr/platform/SUNW,Sun-Fire-V445/lib/picl/plugins/fru_FT4.conf 644 root sy
f none usr/platform/SUNW,Sun-Fire-V445/lib/picl/plugins/fru_FT5.conf 644 root sys
s none usr/platform/SUNW,Sun-Fire-V445/lib/picl/plugins/libpiclfrudr.so.1=../../../../SUNW,Sun-Fire-V240/lib/picl/plugins/libpiclfrudr.so.1
s none usr/platform/SUNW,Sun-Fire-V445/lib/picl/plugins/libpiclfrudr.so=../../../../SUNW,Sun-Fire-V240/lib/picl/plugins/libpiclfrudr.so
+d none usr/platform/TAD,SPARCLE 755 root sys
+d none usr/platform/TAD,SPARCLE/lib 755 root bin
+s none usr/platform/TAD,SPARCLE/lib/libprtdiag_psr.so.1=../../SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
d none usr/lib/sparcv9 755 root bin
f none usr/lib/sparcv9/libpicl.so.1 755 root bin
s none usr/lib/sparcv9/libpicl.so=./libpicl.so.1 755 root bin
diff --git a/usr/src/pkgdefs/SUNWpstl.u/prototype_sparc b/usr/src/pkgdefs/SUNWpstl.u/prototype_sparc
index 062e84fcfa..309913e8a5 100644
--- a/usr/src/pkgdefs/SUNWpstl.u/prototype_sparc
+++ b/usr/src/pkgdefs/SUNWpstl.u/prototype_sparc
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -78,6 +77,7 @@ d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40 755 root sys
d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60 755 root sys
d none usr/platform/SUNW,Netra-CP2300 755 root sys
d none usr/platform/SUNW,Netra-CP3010 755 root sys
+d none usr/platform/TAD,SPARCLE 755 root sys
#
# create other sun4u platform/lib directories
#
@@ -111,3 +111,4 @@ d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib 755 root bin
d none usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib 755 root bin
d none usr/platform/SUNW,Netra-CP2300/lib 755 root bin
d none usr/platform/SUNW,Netra-CP3010/lib 755 root bin
+d none usr/platform/TAD,SPARCLE/lib 755 root bin
diff --git a/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile b/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile
index 0440f63da9..40ef919950 100644
--- a/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile
+++ b/usr/src/psm/stand/boot/sparcv9/sun4u/Makefile
@@ -19,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -62,6 +62,7 @@ PLATLINKS += SUNW,Netra-T4
PLATLINKS += SUNW,Netra-CP2300
PLATLINKS += SUNW,Netra-CP3010
PLATLINKS += SUNW,SPARC-Enterprise
+PLATLINKS += TAD,SPARCLE
LINKED_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
LINKED_LIB_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
diff --git a/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile b/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile
index e6f27cc1a7..97046bdf91 100644
--- a/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile
+++ b/usr/src/psm/stand/bootblks/ufs/sparc/sun4u/Makefile
@@ -21,7 +21,7 @@
#
#ident "%Z%%M% %I% %E% SMI"
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# psm/stand/bootblks/ufs/sparc/sun4u/Makefile
@@ -61,6 +61,7 @@ PLATLINKS += SUNW,Serverblade1
PLATLINKS += SUNW,Netra-T12
PLATLINKS += SUNW,Netra-T4
PLATLINKS += SUNW,SPARC-Enterprise
+PLATLINKS += TAD,SPARCLE
LINKED_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
LINKED_LIB_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
diff --git a/usr/src/uts/sun4u/Makefile.sun4u.shared b/usr/src/uts/sun4u/Makefile.sun4u.shared
index e18b04a57d..2b7e0beaff 100644
--- a/usr/src/uts/sun4u/Makefile.sun4u.shared
+++ b/usr/src/uts/sun4u/Makefile.sun4u.shared
@@ -186,6 +186,7 @@ IMPLEMENTATIONS += lw8 .WAIT
IMPLEMENTATIONS += makaha .WAIT
IMPLEMENTATIONS += opl .WAIT
IMPLEMENTATIONS += lw2plus .WAIT
+IMPLEMENTATIONS += douglas .WAIT
$(CLOSED_BUILD)CLOSED_IMPLEMENTATIONS = chalupa .WAIT
$(CLOSED_BUILD)CLOSED_IMPLEMENTATIONS += ents .WAIT
diff --git a/usr/src/uts/sun4u/douglas/Makefile b/usr/src/uts/sun4u/douglas/Makefile
new file mode 100644
index 0000000000..93daba51f0
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile
@@ -0,0 +1,100 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# uts/sun4u/douglas/Makefile
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "%Z%%M% %I% %E% SMI"
+#
+# This makefile drives the production of the sun4u douglas platform
+# module.
+#
+# sun4u implementation architecture dependent
+#
+
+#
+# Path to the base of the uts directory tree (usually /usr/src/uts).
+#
+UTSBASE = ../..
+
+#
+# Include common rules.
+#
+include $(UTSBASE)/sun4u/douglas/Makefile.douglas
+
+def := TARGET= def
+all := TARGET= all
+install := TARGET= install
+install_h := TARGET= install_h
+clean := TARGET= clean
+clobber := TARGET= clobber
+lint := TARGET= lint
+lintlib := TARGET= lintlib
+modlintlib := TARGET= modlintlib
+modlist := TARGET= modlist
+modlist := NO_STATE= -K $$MODSTATE$$$$
+clean.lint := TARGET= clean.lint
+check := TARGET= check
+
+#
+# Default build targets.
+#
+.KEEP_STATE:
+
+def all clean clean.lint clobber modlist: $(DOUGLAS_KMODS)
+
+modlintlib: $(DOUGLAS_KMODS)
+
+install: $(ROOT_DOUGLAS_DIR) \
+ $(USR_DOUGLAS_DIR) \
+ $(USR_DOUGLAS_INC_DIR) \
+ $(USR_DOUGLAS_SBIN_DIR) \
+ $(USR_DOUGLAS_LIB_DIR) \
+ $(DOUGLAS_KMODS)
+
+check install_h:
+
+lint: modlintlib
+
+#
+# The 'lint.platmod' target lints the douglas platform module against the sun4u
+# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
+# of minutes. Due to the low ROI, it's not run by default, but it's a good
+# idea to run this if you change os/douglas.c.
+#
+LINT_LIBS = $(LINT_LIB) \
+ -L$(DOUGLAS_LINT_LIB_DIR) \
+ -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
+ $(CLOSED_LINT_KMODS:%=-l%) \
+ -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
+
+lint.platmod: modlintlib
+ @-$(ECHO) "\nDouglas Platform-dependent module: global crosschecks:"
+ @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
+
+$(DOUGLAS_KMODS): FRC
+ @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
+
+#
+# Include common targets.
+#
+include $(UTSBASE)/sun4u/douglas/Makefile.targ
diff --git a/usr/src/uts/sun4u/douglas/Makefile.douglas b/usr/src/uts/sun4u/douglas/Makefile.douglas
new file mode 100644
index 0000000000..79ad2e6463
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile.douglas
@@ -0,0 +1,28 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+UTSTREE=$(UTSBASE)
+
+include $(UTSBASE)/sun4u/douglas/Makefile.douglas.shared
diff --git a/usr/src/uts/sun4u/douglas/Makefile.douglas.shared b/usr/src/uts/sun4u/douglas/Makefile.douglas.shared
new file mode 100644
index 0000000000..9b6b00b3af
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile.douglas.shared
@@ -0,0 +1,74 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# uts/sun4u/douglas/Makefile.douglas
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "%Z%%M% %I% %E% SMI"
+#
+# Global definitions for sun4u implementation specific modules.
+#
+
+#
+# Define directories.
+#
+ROOT_DOUGLAS_DIR = $(ROOT_PLAT_DIR)/TAD,SPARCLE
+ROOT_DOUGLAS_MOD_DIR = $(ROOT_DOUGLAS_DIR)/kernel
+
+ROOT_DOUGLAS_MISC_DIR_32 = $(ROOT_DOUGLAS_MOD_DIR)/misc
+ROOT_DOUGLAS_MISC_DIR_64 = $(ROOT_DOUGLAS_MISC_DIR_32)/$(SUBDIR64)
+ROOT_DOUGLAS_DRV_DIR_32 = $(ROOT_DOUGLAS_MOD_DIR)/drv
+ROOT_DOUGLAS_DRV_DIR_64 = $(ROOT_DOUGLAS_DRV_DIR_32)/$(SUBDIR64)
+
+ROOT_DOUGLAS_MISC_DIR = $(ROOT_DOUGLAS_MISC_DIR_$(CLASS))
+ROOT_DOUGLAS_DRV_DIR = $(ROOT_DOUGLAS_DRV_DIR_$(CLASS))
+
+ROOT_PLAT_MOD_DIRS += $(ROOT_DOUGLAS_MOD_DIR)
+ROOT_PLAT_MISC_DIRS += $(ROOT_DOUGLAS_MISC_DIR)
+
+USR_DOUGLAS_DIR = $(USR_PLAT_DIR)/TAD,SPARCLE
+USR_DOUGLAS_LINKED_DIR = $(USR_PLAT_DIR)/$(LINKED_PLATFORM)
+USR_DOUGLAS_INC_DIR = $(USR_DOUGLAS_DIR)/include
+USR_DOUGLAS_ISYS_DIR = $(USR_DOUGLAS_INC_DIR)/sys
+USR_DOUGLAS_SBIN_DIR = $(USR_DOUGLAS_DIR)/sbin
+USR_DOUGLAS_LIB_DIR = $(USR_DOUGLAS_DIR)/lib
+
+
+DOUGLAS_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/douglas/lint-libs/$(OBJS_DIR)
+
+#
+# Define objects.
+#
+DOUGLAS_OBJS = douglas.o
+
+include $(UTSTREE)/sun4u/douglas/Makefile.files
+
+#
+# Include common rules.
+#
+include $(UTSTREE)/sun4u/Makefile.sun4u
+
+#
+# Define modules (must come after Makefile.sun4u, for CLOSED_BUILD).
+#
+DOUGLAS_KMODS = platmod
+
diff --git a/usr/src/uts/sun4u/douglas/Makefile.files b/usr/src/uts/sun4u/douglas/Makefile.files
new file mode 100644
index 0000000000..f896758909
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile.files
@@ -0,0 +1,42 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# uts/sun4u/douglas/Makefile.files
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "%Z%%M% %I% %E% SMI"
+#
+# This Makefile defines all file modules for the directory
+# uts/sun4u/douglas and it's children. These are the source files
+# which are sun4u "implementation architecture" dependent.
+#
+
+#
+# object lists
+#
+# Douglas specific driver modules
+#
+
+#
+# Miscellaneous
+#
+INC_PATH += -I$(UTSBASE)/sun4u/douglas
diff --git a/usr/src/uts/sun4u/douglas/Makefile.rules b/usr/src/uts/sun4u/douglas/Makefile.rules
new file mode 100644
index 0000000000..6b398ef315
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile.rules
@@ -0,0 +1,63 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "%Z%%M% %I% %E% SMI"
+#
+# This Makefile defines the build rules for the directory
+# uts/sun4u/douglas.
+#
+# The following two-level ordering must be maintained in this file.
+# Lines are sorted first in order of decreasing specificity based on
+# the first directory component. That is, sun4u rules come before
+# sparc rules come before common rules.
+#
+# Lines whose initial directory components are equal are sorted
+# alphabetically by the remaining components.
+
+#
+# Section 1a: C object build rules
+#
+$(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/%.c
+ $(COMPILE.c) -o $@ $<
+ $(CTFCONVERT_O)
+
+$(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/douglas/io/%.c
+ $(COMPILE.c) -o $@ $<
+ $(CTFCONVERT_O)
+
+$(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/douglas/os/%.c
+ $(COMPILE.c) -o $@ $<
+ $(CTFCONVERT_O)
+
+#
+# Section 1b: Lint `object' build rules
+#
+$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.c
+ @($(LHEAD) $(LINT.c) $< $(LTAIL))
+
+$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/douglas/io/%.c
+ @($(LHEAD) $(LINT.c) $< $(LTAIL))
+
+$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/douglas/os/%.c
+ @($(LHEAD) $(LINT.c) $< $(LTAIL))
diff --git a/usr/src/uts/sun4u/douglas/Makefile.targ b/usr/src/uts/sun4u/douglas/Makefile.targ
new file mode 100644
index 0000000000..15069c78f5
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile.targ
@@ -0,0 +1,28 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+UTSTREE=$(UTSBASE)
+
+include $(UTSBASE)/sun4u/douglas/Makefile.targ.shared
diff --git a/usr/src/uts/sun4u/douglas/Makefile.targ.shared b/usr/src/uts/sun4u/douglas/Makefile.targ.shared
new file mode 100644
index 0000000000..aa43b0f532
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/Makefile.targ.shared
@@ -0,0 +1,84 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "%Z%%M% %I% %E% SMI"
+#
+# Common targets for sun4u Douglas implementation specific modules.
+#
+
+.KEEP_STATE:
+
+IMPLEMENTED_PLATFORM = TAD,SPARCLE
+
+#
+# Rules for implementation subdirectories.
+#
+$(ROOT_DOUGLAS_DIR): $(ROOT_PLAT_DIR)
+ -$(INS.dir.root.sys)
+
+$(ROOT_DOUGLAS_MOD_DIR): $(ROOT_DOUGLAS_DIR)
+ -$(INS.dir.root.sys)
+
+$(ROOT_DOUGLAS_MISC_DIR_32): $(ROOT_DOUGLAS_MOD_DIR)
+ -$(INS.dir.root.sys)
+
+$(ROOT_DOUGLAS_MISC_DIR_64): $(ROOT_DOUGLAS_MISC_DIR_32)
+ -$(INS.dir.root.sys)
+
+$(ROOT_DOUGLAS_DRV_DIR_32): $(ROOT_DOUGLAS_MOD_DIR)
+ -$(INS.dir.root.sys)
+
+$(ROOT_DOUGLAS_DRV_DIR_64): $(ROOT_DOUGLAS_DRV_DIR_32)
+ -$(INS.dir.root.sys)
+
+$(USR_DOUGLAS_DIR): $(USR_PLAT_DIR)
+ -$(INS.dir.root.sys)
+
+$(USR_DOUGLAS_INC_DIR): $(USR_DOUGLAS_DIR)
+ -$(INS.slink4)
+
+$(USR_DOUGLAS_SBIN_DIR): $(USR_DOUGLAS_DIR)
+ -$(INS.slink5)
+
+$(USR_DOUGLAS_LIB_DIR): $(USR_DOUGLAS_DIR)
+ -$(INS.dir.root.bin)
+
+$(USR_DOUGLAS_ISYS_DIR): $(USR_DOUGLAS_INC_DIR)
+ -$(INS.dir.bin.bin)
+
+
+$(ROOT_DOUGLAS_MOD_DIR)/%: $(OBJS_DIR)/% $(ROOT_DOUGLAS_MOD_DIR) FRC
+ $(INS.file)
+
+$(ROOT_DOUGLAS_MISC_DIR)/%: $(OBJS_DIR)/% $(ROOT_DOUGLAS_MISC_DIR) FRC
+ $(INS.file)
+
+$(ROOT_DOUGLAS_DRV_DIR)/%: $(OBJS_DIR)/% $(ROOT_DOUGLAS_DRV_DIR) FRC
+ $(INS.file)
+
+#
+# Include common targets.
+#
+include $(UTSTREE)/sun4u/douglas/Makefile.rules
+include $(UTSTREE)/sun4u/Makefile.targ
diff --git a/usr/src/uts/sun4u/douglas/os/douglas.c b/usr/src/uts/sun4u/douglas/os/douglas.c
new file mode 100644
index 0000000000..3b74df3e77
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/os/douglas.c
@@ -0,0 +1,178 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/sunddi.h>
+#include <sys/esunddi.h>
+#include <sys/ddi.h>
+
+#include <sys/platform_module.h>
+#include <sys/errno.h>
+
+void
+startup_platform(void)
+{
+}
+
+int
+set_platform_tsb_spares()
+{
+ return (0);
+}
+
+void
+set_platform_defaults(void)
+{
+}
+
+
+/*
+ * Definitions for accessing the pci config space of the isa node
+ * of Southbridge.
+ */
+#define DOUGLAS_ISA_PATHNAME "/pci@1f,0/isa@7"
+ddi_acc_handle_t douglas_isa_handle; /* handle for isa pci space */
+
+void
+load_platform_drivers(void)
+{
+ dev_info_t *dip; /* dip of the isa driver */
+
+ /*
+ * It is OK to return error because 'us' driver is not available
+ * in all clusters (e.g. missing in Core cluster).
+ */
+ (void) i_ddi_attach_hw_nodes("us");
+
+ /*
+ * Note that should warn if this can't happen, but wait until
+ * tadpmu is integrated before doing that.
+ */
+ (void) i_ddi_attach_hw_nodes("tadpmu");
+
+ /*
+ * Install Isa driver. This is required for the southbridge IDE
+ * workaround - to reset the IDE channel during IDE bus reset.
+ * Panic the system in case ISA driver could not be loaded or
+ * any problem in accessing its pci config space. Since the register
+ * to reset the channel for IDE is in ISA config space!.
+ */
+
+ dip = e_ddi_hold_devi_by_path(DOUGLAS_ISA_PATHNAME, 0);
+ if (dip == NULL) {
+ cmn_err(CE_PANIC, "Could not install the isa driver\n");
+ return;
+ }
+
+ if (pci_config_setup(dip, &douglas_isa_handle) != DDI_SUCCESS) {
+ cmn_err(CE_PANIC, "Could not get the config space of isa\n");
+ return;
+ }
+}
+
+/*
+ * This routine provides a workaround for a bug in the SB chip which
+ * can cause data corruption. Will be invoked from the IDE HBA driver for
+ * Acer SouthBridge at the time of IDE bus reset.
+ */
+/*ARGSUSED*/
+int
+plat_ide_chipreset(dev_info_t *dip, int chno)
+{
+ uint8_t val;
+ int ret = DDI_SUCCESS;
+
+ val = pci_config_get8(douglas_isa_handle, 0x58);
+ /*
+ * The dip passed as the argument is not used for douglas.
+ * This will be needed for platforms which have multiple on-board SB,
+ * The dip passed will be used to match the corresponding ISA node.
+ */
+ switch (chno) {
+ case 0:
+ /*
+ * First disable the primary channel then re-enable it.
+ * As per ALI no wait should be required in between have
+ * given 1ms delay in between to be on safer side.
+ * bit 2 of register 0x58 when 0 disable the channel 0.
+ * bit 2 of register 0x58 when 1 enables the channel 0.
+ */
+ pci_config_put8(douglas_isa_handle, 0x58, val & 0xFB);
+ drv_usecwait(1000);
+ pci_config_put8(douglas_isa_handle, 0x58, val);
+ break;
+ case 1:
+ /*
+ * bit 3 of register 0x58 when 0 disable the channel 1.
+ * bit 3 of register 0x58 when 1 enables the channel 1.
+ */
+ pci_config_put8(douglas_isa_handle, 0x58, val & 0xF7);
+ drv_usecwait(1000);
+ pci_config_put8(douglas_isa_handle, 0x58, val);
+ break;
+ default:
+ /*
+ * Unknown channel number passed. Return failure.
+ */
+ ret = DDI_FAILURE;
+ }
+
+ return (ret);
+}
+
+
+
+/*ARGSUSED*/
+int
+plat_cpu_poweron(struct cpu *cp)
+{
+ return (ENOTSUP); /* not supported on this platform */
+}
+
+/*ARGSUSED*/
+int
+plat_cpu_poweroff(struct cpu *cp)
+{
+ return (ENOTSUP); /* not supported on this platform */
+}
+
+/*ARGSUSED*/
+void
+plat_freelist_process(int mnode)
+{
+}
+
+char *platform_module_list[] = {
+ (char *)0
+};
+
+/*ARGSUSED*/
+void
+plat_tod_fault(enum tod_fault_type tod_bad)
+{
+}
diff --git a/usr/src/uts/sun4u/douglas/os/platmod/Makefile b/usr/src/uts/sun4u/douglas/os/platmod/Makefile
new file mode 100644
index 0000000000..ef095cfc94
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/os/platmod/Makefile
@@ -0,0 +1,109 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+#
+# This makefile drives the production of the sun4u douglas platform module.
+#
+# sun4u implementation architecture dependent
+#
+
+#
+# Path to the base of the uts directory tree (usually /usr/src/uts).
+#
+UTSBASE = ../../..
+
+#
+# Define the module and object file sets.
+#
+MODULE = platmod
+OBJECTS = $(DOUGLAS_OBJS:%=$(OBJS_DIR)/%)
+LINTS = $(DOUGLAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
+ROOTMODULE = $(ROOT_DOUGLAS_MISC_DIR)/$(MODULE)
+
+PLAT_DIR = .
+HERE = ../douglas/platmod
+
+#
+# Include common rules.
+#
+include $(UTSBASE)/sun4u/douglas/Makefile.douglas
+
+#
+# Override defaults
+#
+CLEANFILES += $(PLATLIB) $(SYM_MOD)
+
+#
+# Define targets
+#
+ALL_TARGET = $(SYM_MOD)
+LINT_TARGET = $(MODULE).lint
+INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
+
+#
+# lint pass one enforcement
+#
+CFLAGS += $(CCVERBOSE)
+
+#
+# Default build targets.
+#
+.KEEP_STATE:
+
+def: $(DEF_DEPS)
+
+all: $(ALL_DEPS)
+
+clean: $(CLEAN_DEPS)
+
+clobber: $(CLOBBER_DEPS)
+
+lint: $(LINT_DEPS)
+
+modlintlib: $(MODLINTLIB_DEPS)
+
+clean.lint: $(CLEAN_LINT_DEPS)
+
+install: $(INSTALL_DEPS)
+
+check:
+
+LINT_LIB_DIR = $(DOUGLAS_LINT_LIB_DIR)
+
+$(PLATLIB): $(BINARY)
+ $(BUILD.SO) $(BINARY)
+
+$(SYM_MOD): $(UNIX_O) $(PLATLIB)
+ @echo "resolving symbols against unix.o"
+ @(cd $(UNIX_DIR); pwd; \
+ PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
+
+#
+# Include common targets.
+#
+include $(UTSBASE)/sun4u/douglas/Makefile.targ
diff --git a/usr/src/uts/sun4u/douglas/platmod/Makefile b/usr/src/uts/sun4u/douglas/platmod/Makefile
new file mode 100644
index 0000000000..ef095cfc94
--- /dev/null
+++ b/usr/src/uts/sun4u/douglas/platmod/Makefile
@@ -0,0 +1,109 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+#
+# This makefile drives the production of the sun4u douglas platform module.
+#
+# sun4u implementation architecture dependent
+#
+
+#
+# Path to the base of the uts directory tree (usually /usr/src/uts).
+#
+UTSBASE = ../../..
+
+#
+# Define the module and object file sets.
+#
+MODULE = platmod
+OBJECTS = $(DOUGLAS_OBJS:%=$(OBJS_DIR)/%)
+LINTS = $(DOUGLAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
+ROOTMODULE = $(ROOT_DOUGLAS_MISC_DIR)/$(MODULE)
+
+PLAT_DIR = .
+HERE = ../douglas/platmod
+
+#
+# Include common rules.
+#
+include $(UTSBASE)/sun4u/douglas/Makefile.douglas
+
+#
+# Override defaults
+#
+CLEANFILES += $(PLATLIB) $(SYM_MOD)
+
+#
+# Define targets
+#
+ALL_TARGET = $(SYM_MOD)
+LINT_TARGET = $(MODULE).lint
+INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
+
+#
+# lint pass one enforcement
+#
+CFLAGS += $(CCVERBOSE)
+
+#
+# Default build targets.
+#
+.KEEP_STATE:
+
+def: $(DEF_DEPS)
+
+all: $(ALL_DEPS)
+
+clean: $(CLEAN_DEPS)
+
+clobber: $(CLOBBER_DEPS)
+
+lint: $(LINT_DEPS)
+
+modlintlib: $(MODLINTLIB_DEPS)
+
+clean.lint: $(CLEAN_LINT_DEPS)
+
+install: $(INSTALL_DEPS)
+
+check:
+
+LINT_LIB_DIR = $(DOUGLAS_LINT_LIB_DIR)
+
+$(PLATLIB): $(BINARY)
+ $(BUILD.SO) $(BINARY)
+
+$(SYM_MOD): $(UNIX_O) $(PLATLIB)
+ @echo "resolving symbols against unix.o"
+ @(cd $(UNIX_DIR); pwd; \
+ PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
+
+#
+# Include common targets.
+#
+include $(UTSBASE)/sun4u/douglas/Makefile.targ