pdcsata(4), a driver for the Promise SATA150 (aka PDC203xx) serie of
controllers. Tested with a PDC20375 (2 SATA, one PATA) controller on sparc64. Added to all kernel config file which had pdcide(4).
This commit is contained in:
parent
b256c805c4
commit
fe4d81db48
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: hardware,v 1.115 2004/10/28 07:22:23 martti Exp $
|
||||
.\" $NetBSD: hardware,v 1.116 2004/11/24 20:49:17 bouyer Exp $
|
||||
.
|
||||
.Nx \*V
|
||||
runs on ISA (AT-Bus), EISA, MCA, PCI, and VL-bus systems
|
||||
@ -47,6 +47,9 @@ Promise PDC20246 (Ultra/33), PDC20262 (Ultra/66), PDC20265/PDC20267 (Ultra/100),
|
||||
PDC20268 (Ultra/100TX2 and Ultra/100TX2v2), Ultra/133, Ultra/133TX2,
|
||||
and Ultra/133TX2v2.
|
||||
.It
|
||||
Promise SATA150 serial-ATA controllers: PDC20318, PDC20319, PDC20371,
|
||||
PDC20375, PDC20376, PDC20377, PDC20378 and PDC20379.
|
||||
.It
|
||||
Silicon Integrated System 5597/5598 IDE controller
|
||||
.It
|
||||
VIA Technologies VT82C586, VT82C586A, VT82C596A, VT82C686A, and VT8233A IDE
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: mi,v 1.734 2004/11/23 07:37:43 lukem Exp $
|
||||
# $NetBSD: mi,v 1.735 2004/11/24 20:49:18 bouyer Exp $
|
||||
./etc/mtree/set.man man-sys-root
|
||||
./usr/share/info/am-utils.info man-amd-info info
|
||||
./usr/share/info/as.info man-computil-info bfd,info
|
||||
@ -1046,6 +1046,7 @@
|
||||
./usr/share/man/cat4/pcppi.0 man-sys-catman .cat
|
||||
./usr/share/man/cat4/pcscp.0 man-sys-catman .cat
|
||||
./usr/share/man/cat4/pcweasel.0 man-sys-catman .cat
|
||||
./usr/share/man/cat4/pdcsata.0 man-sys-catman .cat
|
||||
./usr/share/man/cat4/pdcide.0 man-sys-catman .cat
|
||||
./usr/share/man/cat4/pf.0 man-sys-catman .cat
|
||||
./usr/share/man/cat4/pflog.0 man-sys-catman .cat
|
||||
@ -3199,6 +3200,7 @@
|
||||
./usr/share/man/man4/pcppi.4 man-sys-man .man
|
||||
./usr/share/man/man4/pcscp.4 man-sys-man .man
|
||||
./usr/share/man/man4/pcweasel.4 man-sys-man .man
|
||||
./usr/share/man/man4/pdcsata.4 man-sys-man .man
|
||||
./usr/share/man/man4/pdcide.4 man-sys-man .man
|
||||
./usr/share/man/man4/pf.4 man-sys-man .man
|
||||
./usr/share/man/man4/pflog.4 man-sys-man .man
|
||||
|
@ -1,4 +1,4 @@
|
||||
LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.388 $>
|
||||
LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.389 $>
|
||||
|
||||
|
||||
[Note: This file does not mention every change made to the NetBSD source tree.
|
||||
@ -158,3 +158,5 @@ Changes from NetBSD 2.0 to NetBSD 3.0:
|
||||
Unicode range supported. [jdolecek 20041121]
|
||||
getent(1): Add tool to get entries from an administrative database.
|
||||
[lukem 20041123]
|
||||
pdcsata(4): Driver for the SATA150 family of promise controllers.
|
||||
[bouyer 20041124]
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.335 2004/11/14 11:26:44 yamt Exp $
|
||||
# $NetBSD: Makefile,v 1.336 2004/11/24 20:49:19 bouyer Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/18/93
|
||||
|
||||
MAN= aac.4 acardide.4 aceride.4 acphy.4 adc.4 adv.4 \
|
||||
@ -27,7 +27,7 @@ MAN= aac.4 acardide.4 aceride.4 acphy.4 adc.4 adv.4 \
|
||||
nsclpcsio.4 nsip.4 nsphy.4 nsphyter.4 ntwoc.4 \
|
||||
null.4 nsmb.4 oak.4 oosiop.4 opl.4 options.4 \
|
||||
optiide.4 osiop.4 pas.4 pcdisplay.4 pciide.4 \
|
||||
pdcide.4 piixide.4 pckbc.4 pckbd.4 pcn.4 pcppi.4 pcscp.4 \
|
||||
pdcide.4 pdcsata.4 piixide.4 pckbc.4 pckbd.4 pcn.4 pcppi.4 pcscp.4 \
|
||||
pcweasel.4 pim.4 plip.4 pms.4 pnaphy.4 ppbus.4 ppp.4 \
|
||||
pppoe.4 ptm.4 pty.4 puc.4 px.4 pxg.4 qe.4 qec.4 qsphy.4 \
|
||||
raid.4 ray.4 rcons.4 re.4 rnd.4 route.4 rtk.4 satalink.4 \
|
||||
|
53
share/man/man4/pdcsata.4
Normal file
53
share/man/man4/pdcsata.4
Normal file
@ -0,0 +1,53 @@
|
||||
.\" $NetBSD: pdcsata.4,v 1.1 2004/11/24 20:49:19 bouyer Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 Manuel Bouyer.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by Manuel Bouyer.
|
||||
.\" 4. The name of the author may not be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd November 24, 2004
|
||||
.Dt PDCSATA 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm pdcsata
|
||||
.Nd Promise Serial-ATA disk controllers driver
|
||||
.Sh SYNOPSIS
|
||||
.Cd "pdcsata* at pci? dev ? function ? flags 0x0000"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
driver supports the Promise SATA150 family of serial-ATA controllers
|
||||
(PDC20318, PDC20319, PDC20371, PDC20375, PDC20376, PDC20377, PDC20378 and
|
||||
PDC20379), and provides the interface with the hardware for the
|
||||
.Xr ata 4
|
||||
driver.
|
||||
.Sh SEE ALSO
|
||||
.Xr ata 4 ,
|
||||
.Xr atapi 4 ,
|
||||
.Xr intro 4 ,
|
||||
.Xr pci 4 ,
|
||||
.Xr pciide 4 ,
|
||||
.Xr wd 4 ,
|
||||
.Xr wdc 4
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: P4032,v 1.25 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: P4032,v 1.26 2004/11/24 20:49:19 bouyer Exp $
|
||||
#
|
||||
# Algorithmics P-4032 kernel.
|
||||
#
|
||||
@ -7,7 +7,7 @@ include "arch/algor/conf/std.algor"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "P4032-$Revision: 1.25 $"
|
||||
#ident "P4032-$Revision: 1.26 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -159,6 +159,7 @@ pci* at vtpbc?
|
||||
#optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
#pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
#satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
#slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: P5064,v 1.30 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: P5064,v 1.31 2004/11/24 20:49:19 bouyer Exp $
|
||||
#
|
||||
# Algorithmics P-5064 kernel.
|
||||
#
|
||||
@ -7,7 +7,7 @@ include "arch/algor/conf/std.algor"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "P5064-$Revision: 1.30 $"
|
||||
#ident "P5064-$Revision: 1.31 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -155,6 +155,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: P6032,v 1.24 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: P6032,v 1.25 2004/11/24 20:49:19 bouyer Exp $
|
||||
#
|
||||
# Algorithmics P-6032 kernel.
|
||||
#
|
||||
@ -7,7 +7,7 @@ include "arch/algor/conf/std.algor"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "P6032-$Revision: 1.24 $"
|
||||
#ident "P6032-$Revision: 1.25 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -147,6 +147,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: ALPHA,v 1.196 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: ALPHA,v 1.197 2004/11/24 20:49:19 bouyer Exp $
|
||||
#
|
||||
# Alpha kernel with all the options you'd want, and more.
|
||||
|
||||
@ -6,7 +6,7 @@ include "arch/alpha/conf/std.alpha"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
ident "ALPHA-$Revision: 1.196 $"
|
||||
ident "ALPHA-$Revision: 1.197 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -311,6 +311,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: BASIL,v 1.27 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: BASIL,v 1.28 2004/11/24 20:49:19 bouyer Exp $
|
||||
#
|
||||
# basil.shagadelic.org -- thorpej's API UP1000
|
||||
|
||||
@ -6,7 +6,7 @@ include "arch/alpha/conf/std.alpha"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "BASIL-$Revision: 1.27 $"
|
||||
#ident "BASIL-$Revision: 1.28 $"
|
||||
|
||||
maxusers 64
|
||||
|
||||
@ -239,6 +239,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: FRAU-FARBISSINA,v 1.32 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: FRAU-FARBISSINA,v 1.33 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# frau-farbissina.shagadelic.org -- thorpej's AlphaServer 1200 MP hacking
|
||||
# box
|
||||
@ -7,7 +7,7 @@ include "arch/alpha/conf/std.alpha"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "FRAU-FARBISSINA-$Revision: 1.32 $"
|
||||
#ident "FRAU-FARBISSINA-$Revision: 1.33 $"
|
||||
|
||||
maxusers 64
|
||||
|
||||
@ -213,6 +213,7 @@ pceb* at pci? dev ? function ? # Intel PCI-EISA Bridges
|
||||
#optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
#pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
#satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
#slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -22,7 +22,7 @@ include "arch/alpha/conf/std.alpha"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.256 $"
|
||||
#ident "GENERIC-$Revision: 1.257 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -335,6 +335,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL,v 1.81 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: INSTALL,v 1.82 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# Alpha INSTALL kernel.
|
||||
|
||||
@ -211,6 +211,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.31 2004/11/10 17:54:02 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.32 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/amd64/conf/std.amd64"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.31 $"
|
||||
#ident "GENERIC-$Revision: 1.32 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -425,6 +425,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL,v 1.20 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: INSTALL,v 1.21 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
include "arch/amd64/conf/std.amd64"
|
||||
|
||||
#ident "INSTALL-$Revision: 1.20 $"
|
||||
#ident "INSTALL-$Revision: 1.21 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -337,6 +337,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL_ACPI,v 1.12 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: INSTALL_ACPI,v 1.13 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
include "arch/amd64/conf/std.amd64"
|
||||
|
||||
#ident "INSTALL-$Revision: 1.12 $"
|
||||
#ident "INSTALL-$Revision: 1.13 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -337,6 +337,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: SIMICS,v 1.10 2004/11/10 17:25:21 christos Exp $
|
||||
# $NetBSD: SIMICS,v 1.11 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# INSTALL_TINY - Tiny Installation kernel, suitable for 4M machines.
|
||||
#
|
||||
@ -349,6 +349,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.106 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.107 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/arc/conf/std.arc"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.106 $"
|
||||
#ident "GENERIC-$Revision: 1.107 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -313,6 +313,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: MIMORI,v 1.29 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: MIMORI,v 1.30 2004/11/24 20:49:20 bouyer Exp $
|
||||
# NetBSD: GENERIC,v 1.31 2000/06/09 05:33:02 soda Exp
|
||||
#
|
||||
# MIMORI -- My NEC RISCstation 2250 (ur)
|
||||
@ -185,6 +185,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: PCCONS,v 1.37 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: PCCONS,v 1.38 2004/11/24 20:49:20 bouyer Exp $
|
||||
# $OpenBSD: GENERIC,v 1.29 1999/08/29 12:14:03 niklas Exp $
|
||||
#
|
||||
# PCCONS -- generic but pccons rather than wscons
|
||||
@ -259,6 +259,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: RAMDISK,v 1.50 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: RAMDISK,v 1.51 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# memory disk based configuration file for MIPS R4x00 ARC Systems
|
||||
#
|
||||
@ -7,7 +7,7 @@ include "arch/arc/conf/std.arc"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.50 $"
|
||||
#ident "GENERIC-$Revision: 1.51 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -287,6 +287,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# $NetBSD: MILAN.in,v 1.16 2003/12/14 01:32:01 thorpej Exp $
|
||||
# $NetBSD: MILAN.in,v 1.17 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# Milan
|
||||
#
|
||||
@ -86,6 +86,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.70 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.71 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -284,6 +284,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL,v 1.41 2004/11/10 17:54:03 christos Exp $
|
||||
# $NetBSD: INSTALL,v 1.42 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# CATSINST -- CHALTECH CATS Install kernel
|
||||
#
|
||||
@ -227,6 +227,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.63 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.64 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/cobalt/conf/std.cobalt"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.63 $"
|
||||
#ident "GENERIC-$Revision: 1.64 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -219,6 +219,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: ADI_BRH,v 1.21 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: ADI_BRH,v 1.22 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# ADI_BRH -- ADI Engineering "Big Red Head" i80200 Evaluation Board
|
||||
#
|
||||
@ -175,6 +175,7 @@ artsata* at pci? dev ? function ? # Intel i31244 SATA controller
|
||||
cmdide* at pci? dev ? function ? # CMD tech IDE controllers
|
||||
hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
|
||||
atabus* at ata? channel ?
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INTEGRATOR,v 1.31 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: INTEGRATOR,v 1.32 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC -- ARM Integrator board Generic kernel
|
||||
#
|
||||
@ -176,6 +176,7 @@ pci* at ppb? bus ?
|
||||
#cmdide* at pci? dev ? function ? # CMD tech IDE controllers
|
||||
#hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
#pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
#satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
|
||||
# ATA bus support
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: IQ31244,v 1.17 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: IQ31244,v 1.18 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# IQ31244 -- Intel IQ31244 Evaluation Board Kernel
|
||||
#
|
||||
@ -172,6 +172,7 @@ artsata* at pci? dev ? function ? # Intel i31244 SATA controller
|
||||
cmdide* at pci? dev ? function ? # CMD tech IDE controllers
|
||||
hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
|
||||
atabus* at ata? channel ?
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: IQ80310,v 1.39 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: IQ80310,v 1.40 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# IQ80310 -- Intel IQ80310 Evaluation Board Kernel
|
||||
#
|
||||
@ -183,6 +183,7 @@ artsata* at pci? dev ? function ? # Intel i31244 SATA controller
|
||||
cmdide* at pci? dev ? function ? # CMD tech IDE controllers
|
||||
hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
|
||||
atabus* at ata? channel ?
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: IQ80321,v 1.34 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: IQ80321,v 1.35 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# IQ80321 -- Intel IQ80321 Evaluation Board Kernel
|
||||
#
|
||||
@ -176,6 +176,7 @@ artsata* at pci? dev ? function ? # Intel i31244 SATA controller
|
||||
cmdide* at pci? dev ? function ? # CMD tech IDE controllers
|
||||
hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
|
||||
atabus* at ata? channel ?
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: SMDK2800,v 1.17 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: SMDK2800,v 1.18 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# SMDK2800 -- Samsung's S3C2800 evaluation board.
|
||||
#
|
||||
@ -172,6 +172,7 @@ pci0 at sspci0
|
||||
#cmdide* at pci? dev ? function ? # CMD tech IDE controllers
|
||||
#hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
#pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
#satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
|
||||
# ATA bus support
|
||||
|
@ -1,10 +1,10 @@
|
||||
# $NetBSD: MALTA,v 1.23 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: MALTA,v 1.24 2004/11/24 20:49:20 bouyer Exp $
|
||||
|
||||
include "arch/evbmips/conf/std.malta"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "MALTA-$Revision: 1.23 $"
|
||||
#ident "MALTA-$Revision: 1.24 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -197,6 +197,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: EV64260,v 1.15 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: EV64260,v 1.16 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# MVP -- Motorola's Multiprocessing Verification Platform
|
||||
#
|
||||
@ -238,6 +238,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: OPENBLOCKS266,v 1.11 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: OPENBLOCKS266,v 1.12 2004/11/24 20:49:20 bouyer Exp $
|
||||
#
|
||||
# GENERIC -- everything that's currently supported
|
||||
#
|
||||
@ -163,6 +163,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: WALNUT,v 1.14 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: WALNUT,v 1.15 2004/11/24 20:49:21 bouyer Exp $
|
||||
#
|
||||
# GENERIC -- everything that's currently supported
|
||||
#
|
||||
@ -176,6 +176,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.33 2004/11/10 17:54:04 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.34 2004/11/24 20:49:21 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -23,7 +23,7 @@ include "arch/hp700/conf/std.hp700"
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
|
||||
|
||||
#ident "GENERIC-$Revision: 1.33 $"
|
||||
#ident "GENERIC-$Revision: 1.34 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -383,6 +383,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
rccide* at pci? dev ? function ? # ServerWorks IDE controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: DELPHI,v 1.44 2004/11/10 17:25:21 christos Exp $
|
||||
# $NetBSD: DELPHI,v 1.45 2004/11/24 20:49:21 bouyer Exp $
|
||||
#
|
||||
# DELPHI -- one of thorpej@zembu.com's devel machines
|
||||
#
|
||||
@ -7,7 +7,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
ident "DELPHI-$Revision: 1.44 $"
|
||||
ident "DELPHI-$Revision: 1.45 $"
|
||||
|
||||
maxusers 64 # estimated number of users
|
||||
|
||||
@ -417,6 +417,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.640 2004/11/10 17:54:05 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.641 2004/11/24 20:49:21 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.640 $"
|
||||
#ident "GENERIC-$Revision: 1.641 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -660,6 +660,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
rccide* at pci? dev ? function ? # ServerWorks IDE controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC.MPACPI,v 1.9 2004/11/10 17:25:21 christos Exp $
|
||||
# $NetBSD: GENERIC.MPACPI,v 1.10 2004/11/24 20:49:21 bouyer Exp $
|
||||
#
|
||||
# GENERIC.MPACPI -- Generic, plus ACPI Multiprocessor support
|
||||
#
|
||||
@ -8,7 +8,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.9 $"
|
||||
#ident "GENERIC-$Revision: 1.10 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -634,6 +634,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
rccide* at pci? dev ? function ? # ServerWorks IDE controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC_LAPTOP,v 1.120 2004/11/10 17:25:21 christos Exp $
|
||||
# $NetBSD: GENERIC_LAPTOP,v 1.121 2004/11/24 20:49:21 bouyer Exp $
|
||||
# From: NetBSD: GENERIC,v 1.414 2001/07/30 19:59:05 ad Exp
|
||||
#
|
||||
# GENERIC_LAPTOP -- GENERIC with cardbus and some USB devices enabled
|
||||
@ -8,7 +8,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.120 $"
|
||||
#ident "GENERIC-$Revision: 1.121 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -489,6 +489,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL,v 1.253 2004/11/10 17:25:22 christos Exp $
|
||||
# $NetBSD: INSTALL,v 1.254 2004/11/24 20:49:22 bouyer Exp $
|
||||
#
|
||||
# INSTALL - Installation kernel.
|
||||
#
|
||||
@ -422,6 +422,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
rccide* at pci? dev ? function ? # ServerWorks IDE controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL_LAPTOP,v 1.73 2004/11/10 17:25:22 christos Exp $
|
||||
# $NetBSD: INSTALL_LAPTOP,v 1.74 2004/11/24 20:49:23 bouyer Exp $
|
||||
#
|
||||
# INSTALL - Installation kernel.
|
||||
#
|
||||
@ -364,6 +364,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: IOPENER,v 1.52 2004/11/10 17:25:22 christos Exp $
|
||||
# $NetBSD: IOPENER,v 1.53 2004/11/24 20:49:23 bouyer Exp $
|
||||
#
|
||||
# IOPENER -- GENERIC-like kernel for the Netpliance i-opener
|
||||
# from: GENERIC,v 1.358 2000/07/05 04:07:25 sommerfeld Exp
|
||||
@ -8,7 +8,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "IOPENER-$Revision: 1.52 $"
|
||||
#ident "IOPENER-$Revision: 1.53 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -277,6 +277,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: SWINGER,v 1.56 2004/11/10 17:25:23 christos Exp $
|
||||
# $NetBSD: SWINGER,v 1.57 2004/11/24 20:49:24 bouyer Exp $
|
||||
# from NetBSD: GENERIC,v 1.325 2000/04/14 14:53:32 augustss Exp
|
||||
#
|
||||
# SWINGER -- thorpej's Abit BP6+dual Celeron
|
||||
@ -8,7 +8,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "SWINGER-$Revision: 1.56 $"
|
||||
#ident "SWINGER-$Revision: 1.57 $"
|
||||
|
||||
maxusers 64 # estimated number of users
|
||||
|
||||
@ -421,6 +421,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
viaide* at pci? dev ? function ? # VIA/AMD/Nvidia IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.3 2004/11/10 17:54:05 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.4 2004/11/24 20:49:24 bouyer Exp $
|
||||
#
|
||||
# GENERIC -- Generic kernel
|
||||
#
|
||||
@ -192,6 +192,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
rccide* at pci? dev ? function ? # ServerWorks IDE controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.184 2004/11/12 02:23:09 jklos Exp $
|
||||
# $NetBSD: GENERIC,v 1.185 2004/11/24 20:49:24 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/macppc/conf/std.macppc"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.184 $"
|
||||
#ident "GENERIC-$Revision: 1.185 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -262,6 +262,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: INSTALL,v 1.79 2004/11/10 17:54:05 christos Exp $
|
||||
# $NetBSD: INSTALL,v 1.80 2004/11/24 20:49:24 bouyer Exp $
|
||||
#
|
||||
# config file for INSTALL FLOPPY
|
||||
#
|
||||
@ -101,6 +101,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC.sandpoint,v 1.17 2004/11/10 17:54:06 christos Exp $
|
||||
# $NetBSD: GENERIC.sandpoint,v 1.18 2004/11/24 20:49:24 bouyer Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/sandpoint/conf/std.sandpoint"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.17 $"
|
||||
#ident "GENERIC-$Revision: 1.18 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -146,6 +146,7 @@ isa* at pcib? # ISA on PCI-ISA bridge
|
||||
#optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
#pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
#satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
#slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,10 +1,10 @@
|
||||
# $NetBSD: GENERIC32,v 1.90 2004/11/10 17:54:07 christos Exp $
|
||||
# $NetBSD: GENERIC32,v 1.91 2004/11/24 20:49:24 bouyer Exp $
|
||||
|
||||
include "arch/sparc64/conf/std.sparc64"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.90 $"
|
||||
#ident "GENERIC-$Revision: 1.91 $"
|
||||
|
||||
maxusers 64
|
||||
|
||||
@ -359,6 +359,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: POWEROFSEVEN.inc,v 1.27 2004/11/10 17:54:07 christos Exp $
|
||||
# $NetBSD: POWEROFSEVEN.inc,v 1.28 2004/11/24 20:49:24 bouyer Exp $
|
||||
#
|
||||
# from: NetBSD: GENERIC32,v 1.13 2001/02/28 00:08:18 mjacob Exp
|
||||
#
|
||||
@ -303,6 +303,7 @@ hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
|
||||
optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: SPLODE,v 1.26 2004/11/10 17:54:07 christos Exp $
|
||||
# $NetBSD: SPLODE,v 1.27 2004/11/24 20:49:24 bouyer Exp $
|
||||
#
|
||||
# Configuration for Ultra1, 32 bit mode.
|
||||
|
||||
@ -6,7 +6,7 @@ include "arch/sparc64/conf/std.sparc64"
|
||||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.26 $"
|
||||
#ident "GENERIC-$Revision: 1.27 $"
|
||||
|
||||
maxusers 256
|
||||
|
||||
@ -298,6 +298,7 @@ uk* at scsibus? target ? lun ? # unknown SCSI
|
||||
#optiide* at pci? dev ? function ? # Opti IDE controllers
|
||||
#piixide* at pci? dev ? function ? # Intel IDE controllers
|
||||
#pdcide* at pci? dev ? function ? # Promise IDE controllers
|
||||
#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers
|
||||
#satalink* at pci? dev ? function ? # SiI SATALink controllers
|
||||
#siside* at pci? dev ? function ? # SiS IDE controllers
|
||||
#slide* at pci? dev ? function ? # Symphony Labs IDE controllers
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files.pci,v 1.223 2004/11/13 15:15:56 kent Exp $
|
||||
# $NetBSD: files.pci,v 1.224 2004/11/24 20:49:19 bouyer Exp $
|
||||
#
|
||||
# Config file and device description for machine-independent PCI code.
|
||||
# Included by ports that need it. Requires that the SCSI files be
|
||||
@ -247,6 +247,11 @@ device piixide {[channel = -1]}: ata, pciide_common, wdc_common
|
||||
attach piixide at pci
|
||||
file dev/pci/piixide.c piixide
|
||||
|
||||
# Promise Serial ATA controllers
|
||||
device pdcsata {[channel = -1]}: ata, pciide_common, wdc_common
|
||||
attach pdcsata at pci
|
||||
file dev/pci/pdcsata.c pdcsata
|
||||
|
||||
# Promise IDE controllers
|
||||
device pdcide {[channel = -1]}: ata, pciide_common, wdc_common
|
||||
attach pdcide at pci
|
||||
|
396
sys/dev/pci/pdcsata.c
Normal file
396
sys/dev/pci/pdcsata.c
Normal file
@ -0,0 +1,396 @@
|
||||
/* $NetBSD: pdcsata.c,v 1.1 2004/11/24 20:49:19 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004, Manuel Bouyer.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by Manuel Bouyer.
|
||||
* 4. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <dev/pci/pcivar.h>
|
||||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/pciidereg.h>
|
||||
#include <dev/pci/pciidevar.h>
|
||||
|
||||
#define PDC203xx_NCHANNELS 4
|
||||
|
||||
#define PDC203xx_BAR_IDEREGS 0x1c /* BAR where the IDE registers are mapped */
|
||||
|
||||
static void pdcsata_chip_map(struct pciide_softc *, struct pci_attach_args *);
|
||||
static void pdc203xx_setup_channel(struct ata_channel *);
|
||||
static int pdc203xx_pci_intr(void *);
|
||||
static void pdc203xx_irqack(struct ata_channel *);
|
||||
static int pdc203xx_dma_init(void *, int, int, void *, size_t, int);
|
||||
static void pdc203xx_dma_start(void *,int ,int);
|
||||
static int pdc203xx_dma_finish(void *, int, int, int);
|
||||
|
||||
static int pdcsata_match(struct device *, struct cfdata *, void *);
|
||||
static void pdcsata_attach(struct device *, struct device *, void *);
|
||||
|
||||
CFATTACH_DECL(pdcsata, sizeof(struct pciide_softc),
|
||||
pdcsata_match, pdcsata_attach, NULL, NULL);
|
||||
|
||||
static const struct pciide_product_desc pciide_pdcsata_products[] = {
|
||||
{ PCI_PRODUCT_PROMISE_PDC20318,
|
||||
0,
|
||||
"Promise PDC20318 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20319,
|
||||
0,
|
||||
"Promise PDC20319 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20371,
|
||||
0,
|
||||
"Promise PDC20371 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20375,
|
||||
0,
|
||||
"Promise PDC20375 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20376,
|
||||
0,
|
||||
"Promise PDC20376 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20377,
|
||||
0,
|
||||
"Promise PDC20377 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20378,
|
||||
0,
|
||||
"Promise PDC20378 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ PCI_PRODUCT_PROMISE_PDC20379,
|
||||
0,
|
||||
"Promise PDC20379 SATA150 controller",
|
||||
pdcsata_chip_map,
|
||||
},
|
||||
{ 0,
|
||||
0,
|
||||
NULL,
|
||||
NULL
|
||||
}
|
||||
};
|
||||
|
||||
static int
|
||||
pdcsata_match(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct pci_attach_args *pa = aux;
|
||||
|
||||
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_PROMISE) {
|
||||
if (pciide_lookup_product(pa->pa_id, pciide_pdcsata_products))
|
||||
return (2);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
pdcsata_attach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct pci_attach_args *pa = aux;
|
||||
struct pciide_softc *sc = (struct pciide_softc *)self;
|
||||
|
||||
pciide_common_attach(sc, pa,
|
||||
pciide_lookup_product(pa->pa_id, pciide_pdcsata_products));
|
||||
}
|
||||
|
||||
static void
|
||||
pdcsata_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa)
|
||||
{
|
||||
struct pciide_channel *cp;
|
||||
struct ata_channel *wdc_cp;
|
||||
struct wdc_regs *wdr;
|
||||
int channel, i;
|
||||
bus_size_t dmasize;
|
||||
pci_intr_handle_t intrhandle;
|
||||
const char *intrstr;
|
||||
|
||||
/*
|
||||
* Promise SATA controllers have 3 or 4 channels,
|
||||
* the usual IDE registers are mapped in I/O space, with offsets.
|
||||
*/
|
||||
if (pci_intr_map(pa, &intrhandle) != 0) {
|
||||
aprint_error("%s: couldn't map interrupt\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname);
|
||||
return;
|
||||
}
|
||||
intrstr = pci_intr_string(pa->pa_pc, intrhandle);
|
||||
sc->sc_pci_ih = pci_intr_establish(pa->pa_pc,
|
||||
intrhandle, IPL_BIO, pdc203xx_pci_intr, sc);
|
||||
if (sc->sc_pci_ih == NULL) {
|
||||
aprint_error("%s: couldn't establish native-PCI interrupt",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname);
|
||||
if (intrstr != NULL)
|
||||
aprint_normal(" at %s", intrstr);
|
||||
aprint_normal("\n");
|
||||
return;
|
||||
}
|
||||
aprint_normal("%s: interrupting at %s\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname,
|
||||
intrstr ? intrstr : "unknown interrupt");
|
||||
|
||||
sc->sc_dma_ok = (pci_mapreg_map(pa, PCIIDE_REG_BUS_MASTER_DMA,
|
||||
PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->sc_dma_iot,
|
||||
&sc->sc_dma_ioh, NULL, &dmasize) == 0);
|
||||
if (!sc->sc_dma_ok) {
|
||||
aprint_error("%s: couldn't map bus-master DMA registers\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname);
|
||||
pci_intr_disestablish(pa->pa_pc, sc->sc_pci_ih);
|
||||
return;
|
||||
}
|
||||
|
||||
sc->sc_dmat = pa->pa_dmat;
|
||||
|
||||
if (pci_mapreg_map(pa, PDC203xx_BAR_IDEREGS,
|
||||
PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->sc_ba5_st,
|
||||
&sc->sc_ba5_sh, NULL, NULL) != 0) {
|
||||
aprint_error("%s: couldn't map IDE registers\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname);
|
||||
bus_space_unmap(sc->sc_dma_iot, sc->sc_dma_ioh, dmasize);
|
||||
pci_intr_disestablish(pa->pa_pc, sc->sc_pci_ih);
|
||||
return;
|
||||
}
|
||||
|
||||
aprint_normal("%s: bus-master DMA support present\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname);
|
||||
sc->sc_wdcdev.sc_atac.atac_cap = ATAC_CAP_DATA16;
|
||||
if (sc->sc_dma_ok) {
|
||||
sc->sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_DMA | ATAC_CAP_UDMA;
|
||||
}
|
||||
sc->sc_wdcdev.irqack = pdc203xx_irqack;
|
||||
sc->sc_wdcdev.sc_atac.atac_pio_cap = 4;
|
||||
sc->sc_wdcdev.sc_atac.atac_dma_cap = 2;
|
||||
sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
|
||||
sc->sc_wdcdev.sc_atac.atac_set_modes = pdc203xx_setup_channel;
|
||||
sc->sc_wdcdev.sc_atac.atac_channels = sc->wdc_chanarray;
|
||||
bus_space_write_4(sc->sc_ba5_st, sc->sc_ba5_sh, 0x06c, 0x00ff0033);
|
||||
sc->sc_wdcdev.sc_atac.atac_nchannels =
|
||||
(bus_space_read_4(sc->sc_ba5_st, sc->sc_ba5_sh, 0x48) & 0x02) ?
|
||||
PDC203xx_NCHANNELS : 3;
|
||||
wdc_allocate_regs(&sc->sc_wdcdev);
|
||||
|
||||
sc->sc_wdcdev.dma_arg = sc;
|
||||
sc->sc_wdcdev.dma_init = pdc203xx_dma_init;
|
||||
sc->sc_wdcdev.dma_start = pdc203xx_dma_start;
|
||||
sc->sc_wdcdev.dma_finish = pdc203xx_dma_finish;
|
||||
|
||||
for (channel = 0; channel < sc->sc_wdcdev.sc_atac.atac_nchannels;
|
||||
channel++) {
|
||||
cp = &sc->pciide_channels[channel];
|
||||
sc->wdc_chanarray[channel] = &cp->ata_channel;
|
||||
|
||||
cp->ih = sc->sc_pci_ih;
|
||||
cp->name = NULL;
|
||||
cp->ata_channel.ch_channel = channel;
|
||||
cp->ata_channel.ch_atac = &sc->sc_wdcdev.sc_atac;
|
||||
cp->ata_channel.ch_queue =
|
||||
malloc(sizeof(struct ata_queue), M_DEVBUF, M_NOWAIT);
|
||||
if (cp->ata_channel.ch_queue == NULL) {
|
||||
aprint_error("%s channel %d: "
|
||||
"can't allocate memory for command queue\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, channel);
|
||||
goto next_channel;
|
||||
}
|
||||
wdc_cp = &cp->ata_channel;
|
||||
wdr = CHAN_TO_WDC_REGS(wdc_cp);
|
||||
|
||||
wdr->ctl_iot = sc->sc_ba5_st;
|
||||
wdr->cmd_iot = sc->sc_ba5_st;
|
||||
|
||||
if (bus_space_subregion(sc->sc_ba5_st, sc->sc_ba5_sh,
|
||||
0x0238 + (channel << 7), 1, &wdr->ctl_ioh) != 0) {
|
||||
aprint_error("%s: couldn't map channel %d ctl regs\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname,
|
||||
channel);
|
||||
goto next_channel;
|
||||
}
|
||||
for (i = 0; i < WDC_NREG; i++) {
|
||||
if (bus_space_subregion(sc->sc_ba5_st, sc->sc_ba5_sh,
|
||||
0x0200 + (i << 2) + (channel << 7), i == 0 ? 4 : 1,
|
||||
&wdr->cmd_iohs[i]) != 0) {
|
||||
aprint_error("%s: couldn't map channel %d cmd "
|
||||
"regs\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname,
|
||||
channel);
|
||||
goto next_channel;
|
||||
}
|
||||
}
|
||||
wdc_init_shadow_regs(wdc_cp);
|
||||
|
||||
/*
|
||||
* subregion de busmaster registers. They're spread all over
|
||||
* the controller's register space :(. They are also 4 bytes
|
||||
* sized, with some specific extentions in the extra bits.
|
||||
* It also seems that the IDEDMA_CTL register isn't available.
|
||||
*/
|
||||
if (bus_space_subregion(sc->sc_ba5_st, sc->sc_ba5_sh,
|
||||
0x260 + (channel << 7), 1,
|
||||
&cp->dma_iohs[IDEDMA_CMD]) != 0) {
|
||||
aprint_normal("%s channel %d: can't subregion DMA "
|
||||
"registers\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, channel);
|
||||
goto next_channel;
|
||||
}
|
||||
if (bus_space_subregion(sc->sc_ba5_st, sc->sc_ba5_sh,
|
||||
0x244 + (channel << 7), 4,
|
||||
&cp->dma_iohs[IDEDMA_TBL]) != 0) {
|
||||
aprint_normal("%s channel %d: can't subregion DMA "
|
||||
"registers\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, channel);
|
||||
goto next_channel;
|
||||
}
|
||||
|
||||
wdcattach(wdc_cp);
|
||||
bus_space_write_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD], 0,
|
||||
(bus_space_read_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD],
|
||||
0) & ~0x00003f9f) | (channel + 1));
|
||||
bus_space_write_4(sc->sc_ba5_st, sc->sc_ba5_sh,
|
||||
(channel + 1) << 2, 0x00000001);
|
||||
next_channel:
|
||||
continue;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
pdc203xx_setup_channel(struct ata_channel *chp)
|
||||
{
|
||||
struct ata_drive_datas *drvp;
|
||||
int drive, s;
|
||||
struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
|
||||
|
||||
pciide_channel_dma_setup(cp);
|
||||
|
||||
for (drive = 0; drive < 2; drive++) {
|
||||
drvp = &chp->ch_drive[drive];
|
||||
if ((drvp->drive_flags & DRIVE) == 0)
|
||||
continue;
|
||||
if (drvp->drive_flags & DRIVE_UDMA) {
|
||||
s = splbio();
|
||||
drvp->drive_flags &= ~DRIVE_DMA;
|
||||
splx(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
pdc203xx_pci_intr(void *arg)
|
||||
{
|
||||
struct pciide_softc *sc = arg;
|
||||
struct pciide_channel *cp;
|
||||
struct ata_channel *wdc_cp;
|
||||
int i, rv, crv;
|
||||
u_int32_t scr;
|
||||
|
||||
rv = 0;
|
||||
scr = bus_space_read_4(sc->sc_ba5_st, sc->sc_ba5_sh, 0x00040);
|
||||
|
||||
for (i = 0; i < sc->sc_wdcdev.sc_atac.atac_nchannels; i++) {
|
||||
cp = &sc->pciide_channels[i];
|
||||
wdc_cp = &cp->ata_channel;
|
||||
if (scr & (1 << (i + 1))) {
|
||||
crv = wdcintr(wdc_cp);
|
||||
if (crv == 0) {
|
||||
printf("%s:%d: bogus intr (reg 0x%x)\n",
|
||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname,
|
||||
i, scr);
|
||||
} else
|
||||
rv = 1;
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
static void
|
||||
pdc203xx_irqack(struct ata_channel *chp)
|
||||
{
|
||||
struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
|
||||
struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
|
||||
|
||||
bus_space_write_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD], 0,
|
||||
(bus_space_read_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD],
|
||||
0) & ~0x00003f9f) | (cp->ata_channel.ch_channel + 1));
|
||||
bus_space_write_4(sc->sc_ba5_st, sc->sc_ba5_sh,
|
||||
(cp->ata_channel.ch_channel + 1) << 2, 0x00000001);
|
||||
}
|
||||
|
||||
static int
|
||||
pdc203xx_dma_init(void *v, int channel, int drive, void *databuf,
|
||||
size_t datalen, int flags)
|
||||
{
|
||||
struct pciide_softc *sc = v;
|
||||
|
||||
return pciide_dma_dmamap_setup(sc, channel, drive,
|
||||
databuf, datalen, flags);
|
||||
}
|
||||
|
||||
static void
|
||||
pdc203xx_dma_start(void *v, int channel, int drive)
|
||||
{
|
||||
struct pciide_softc *sc = v;
|
||||
struct pciide_channel *cp = &sc->pciide_channels[channel];
|
||||
struct pciide_dma_maps *dma_maps = &cp->dma_maps[drive];
|
||||
|
||||
/* Write table addr */
|
||||
bus_space_write_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_TBL], 0,
|
||||
dma_maps->dmamap_table->dm_segs[0].ds_addr);
|
||||
/* start DMA engine */
|
||||
bus_space_write_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD], 0,
|
||||
(bus_space_read_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD],
|
||||
0) & ~0xc0) | ((dma_maps->dma_flags & WDC_DMA_READ) ? 0x80 : 0xc0));
|
||||
}
|
||||
|
||||
static int
|
||||
pdc203xx_dma_finish(void *v, int channel, int drive, int force)
|
||||
{
|
||||
struct pciide_softc *sc = v;
|
||||
struct pciide_channel *cp = &sc->pciide_channels[channel];
|
||||
struct pciide_dma_maps *dma_maps = &cp->dma_maps[drive];
|
||||
|
||||
/* stop DMA channel */
|
||||
bus_space_write_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD], 0,
|
||||
(bus_space_read_4(sc->sc_dma_iot, cp->dma_iohs[IDEDMA_CMD],
|
||||
0) & ~0x80));
|
||||
|
||||
/* Unload the map of the data buffer */
|
||||
bus_dmamap_sync(sc->sc_dmat, dma_maps->dmamap_xfer, 0,
|
||||
dma_maps->dmamap_xfer->dm_mapsize,
|
||||
(dma_maps->dma_flags & WDC_DMA_READ) ?
|
||||
BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE);
|
||||
bus_dmamap_unload(sc->sc_dmat, dma_maps->dmamap_xfer);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user