The NetBSD Project

CVS log for src/sys/dev/pci/pci.c

[BACK] Up to [cvs.netbsd.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.119.4.1.4.1 / (download) - annotate - [select for diffs], Sat Dec 24 01:24:44 2011 UTC (5 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.119.4.1: +19 -2 lines
Diff to previous 1.119.4.1 (colored) next main 1.119.4.2 (colored)

Add support for __PCI_DEV_FUNCORDER

Revision 1.142 / (download) - annotate - [select for diffs], Mon Aug 29 14:47:08 2011 UTC (8 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, HEAD
Changes since 1.141: +13 -2 lines
Diff to previous 1.141 (colored)

have pci register itself as a module, and make PCI driver modules depend on it

Revision 1.141 / (download) - annotate - [select for diffs], Wed Aug 24 20:27:35 2011 UTC (9 months ago) by dyoung
Branch: MAIN
Changes since 1.140: +8 -13 lines
Diff to previous 1.140 (colored)

Add to pci_bus_devorder() an argument that tells the number of slots
available in the devs array.  Change the type of the devs array from
char to uint8_t.  Treat the return value of pci_bus_devorder() as the
number of slots that it filled.

Don't use the __PCI_BUS_DEVORDER #definition to configure the kernel
but let the linker do it.  Make pci_bus_devorder() available on all
architectures by adding a default implementation that will DTRT on
all architectures but hpcmips, the only architecture to #define
__PCI_BUS_DEVORDER.  On hpcmips, adapt the implementation to the new
calling convention.

XXX I can compile an hpcmips GENERIC kernel, but I don't have a
XXX hpcmips box to test it on.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:17 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.130: +76 -19 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Revision 1.127.2.5 / (download) - annotate - [select for diffs], Tue May 31 03:04:42 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.127.2.4: +4 -8 lines
Diff to previous 1.127.2.4 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Tue May 17 17:34:54 2011 UTC (12 months, 1 week ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.139: +6 -6 lines
Diff to previous 1.139 (colored)

PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

Revision 1.139 / (download) - annotate - [select for diffs], Tue May 10 18:31:33 2011 UTC (12 months, 2 weeks ago) by dyoung
Branch: MAIN
Changes since 1.138: +2 -6 lines
Diff to previous 1.138 (colored)

Stop abuse of PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED.  The flags
specifically tell a driver that bridges upstream forward PCI I/O (or
memory) transactions to the device."  Only bus drivers have any business
modifying these.

Revision 1.127.2.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:52 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.127.2.3: +18 -10 lines
Diff to previous 1.127.2.3 (colored) to branchpoint 1.127 (colored)

sync with head

Revision 1.138 / (download) - annotate - [select for diffs], Tue Apr 5 23:10:52 2011 UTC (13 months, 2 weeks ago) by dyoung
Branch: MAIN
Changes since 1.137: +13 -6 lines
Diff to previous 1.137 (colored)

Lightly KNF.  Changes to the generated assembly language appeared to
correspond to line numbers in KASSERT() statements.

Revision 1.137 / (download) - annotate - [select for diffs], Tue Apr 5 23:05:06 2011 UTC (13 months, 2 weeks ago) by macallan
Branch: MAIN
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored)

fix a typo

Revision 1.136 / (download) - annotate - [select for diffs], Mon Apr 4 20:37:56 2011 UTC (13 months, 3 weeks ago) by dyoung
Branch: MAIN
Changes since 1.135: +8 -7 lines
Diff to previous 1.135 (colored)

Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'

Revision 1.127.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:47 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.127.2.2: +58 -7 lines
Diff to previous 1.127.2.2 (colored) to branchpoint 1.127 (colored)

sync with head

Revision 1.130.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:24 2011 UTC (14 months, 3 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.130.4.2: +33 -5 lines
Diff to previous 1.130.4.2 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Wed Mar 2 21:57:40 2011 UTC (14 months, 3 weeks ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.134: +9 -4 lines
Diff to previous 1.134 (colored)

When probing the PCI bars, make sure to only probe BARS (PPBs and PCB has
fewer bars than type 0 devices).

Revision 1.134 / (download) - annotate - [select for diffs], Sun Feb 27 18:10:25 2011 UTC (14 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.133: +6 -3 lines
Diff to previous 1.133 (colored)

follow the lead of genfb_pci and call pci_mapreg_probe before pci_mapreg_info

Revision 1.133 / (download) - annotate - [select for diffs], Thu Feb 24 03:37:02 2011 UTC (15 months ago) by macallan
Branch: MAIN
Changes since 1.132: +22 -2 lines
Diff to previous 1.132 (colored)

add a hack to allow mapping the video memory portions of a mach64's aperture
with BUS_SPACE_MAP_PREFETCHABLE
This probably needs to go in its own function to avoid more clutter when adding
more hacks.
tested on macppc

Revision 1.130.4.2 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:13 2011 UTC (15 months, 1 week ago) by bouyer
Branch: bouyer-quota2
Changes since 1.130.4.1: +25 -4 lines
Diff to previous 1.130.4.1 (colored) to branchpoint 1.130 (colored)

Sync with HEAD

Revision 1.119.4.1.6.1 / (download) - annotate - [select for diffs], Wed Feb 16 20:32:15 2011 UTC (15 months, 1 week ago) by bouyer
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE
Changes since 1.119.4.1: +7 -3 lines
Diff to previous 1.119.4.1 (colored) next main 1.119.4.2 (colored)

Pull up following revision(s) (requested by dyoung in ticket #1540):
	sys/dev/pci/pci.c: revision 1.131
During shutdown, restore the each PCI device's bus-mastering enable to
the state that we found it in before attaching a driver to it.

Revision 1.119.4.1.2.1 / (download) - annotate - [select for diffs], Wed Feb 16 20:32:10 2011 UTC (15 months, 1 week ago) by bouyer
Branch: netbsd-5-0
Changes since 1.119.4.1: +7 -3 lines
Diff to previous 1.119.4.1 (colored) next main 1.119.4.2 (colored)

Pull up following revision(s) (requested by dyoung in ticket #1540):
	sys/dev/pci/pci.c: revision 1.131
During shutdown, restore the each PCI device's bus-mastering enable to
the state that we found it in before attaching a driver to it.

Revision 1.119.4.2 / (download) - annotate - [select for diffs], Wed Feb 16 20:31:57 2011 UTC (15 months, 1 week ago) by bouyer
Branch: netbsd-5
Changes since 1.119.4.1: +7 -3 lines
Diff to previous 1.119.4.1 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

Pull up following revision(s) (requested by dyoung in ticket #1540):
	sys/dev/pci/pci.c: revision 1.131
During shutdown, restore the each PCI device's bus-mastering enable to
the state that we found it in before attaching a driver to it.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Feb 10 12:37:58 2011 UTC (15 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.131: +25 -4 lines
Diff to previous 1.131 (colored)

pcimmap: if the requested page is marked prefetchable in a child device's
BAR, pass the BUS_SPACE_MAP_PREFETCHABLE flag down to bus_space_mmap

Revision 1.130.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:51 2011 UTC (15 months, 2 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.130: +7 -3 lines
Diff to previous 1.130 (colored)

Sync with HEAD

Revision 1.131 / (download) - annotate - [select for diffs], Tue Feb 1 19:37:37 2011 UTC (15 months, 3 weeks ago) by dyoung
Branch: MAIN
Changes since 1.130: +7 -3 lines
Diff to previous 1.130 (colored)

During shutdown, restore the each PCI device's bus-mastering enable to
the state that we found it in before attaching a driver to it.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Nov 13 13:52:08 2010 UTC (18 months, 1 week ago) by uebayasi
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.129: +2 -4 lines
Diff to previous 1.129 (colored)

Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.

Revision 1.125.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:27 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.125.2.1: +1 -0 lines
Diff to previous 1.125.2.1 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored)

Sync with HEAD.

Revision 1.116.4.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:50 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.116.4.5: +3 -2 lines
Diff to previous 1.116.4.5 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored)

sync with head.

Revision 1.127.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:37 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.127.2.1: +2 -7 lines
Diff to previous 1.127.2.1 (colored) to branchpoint 1.127 (colored)

sync with head

Revision 1.129 / (download) - annotate - [select for diffs], Sun Jun 6 18:58:23 2010 UTC (23 months, 2 weeks ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.128: +2 -7 lines
Diff to previous 1.128 (colored)

Update pciverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:36 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.127: +8 -2 lines
Diff to previous 1.127 (colored)

sync with head

Revision 1.128 / (download) - annotate - [select for diffs], Mon May 24 20:29:41 2010 UTC (2 years ago) by pgoyette
Branch: MAIN
Changes since 1.127: +8 -2 lines
Diff to previous 1.127 (colored)

Extract the vendor/product tables and related access routines into a
separate kernel module.  Update pci bus attach routine to load the
module (if available) when we're about to start scanning the bus, and
unload the module after the scan is finished.

On architectures which support loading of modules by the boot loader,
the 'pciverbose' module can be loaded and executed without needing to
rebuild the kernel.  On all architectures, using 'options PCIVERBOSE'
in the kernel configuration file will create a 'builtin' module which
is functionally equivalent to previous behavior.

XXX Although not nearly as large as the vendor and product tables,
XXX the PCI class and subclass tables might also be offloaded into
XXX the module at a future time.

XXX Cardbus (and possibly other) drivers should also be modified to
XXX load the module before scanning/attaching devices.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:40 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.125: +4 -52 lines
Diff to previous 1.125 (colored)

Sync with HEAD.

Revision 1.116.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:50 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.116.4.4: +4 -52 lines
Diff to previous 1.116.4.4 (colored) to branchpoint 1.116 (colored)

sync with head

Revision 1.127 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:01 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.126 / (download) - annotate - [select for diffs], Tue Feb 23 19:28:00 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.125: +2 -50 lines
Diff to previous 1.125 (colored)

Remove unused functions pci_disable_retry() and cardbus_disable_retry().

Revision 1.125 / (download) - annotate - [select for diffs], Fri Jan 8 19:56:52 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.124: +4 -4 lines
Diff to previous 1.124 (colored)

Expand PMF_FN_* macros.

Revision 1.116.4.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:52 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.116.4.3: +7 -8 lines
Diff to previous 1.116.4.3 (colored) to branchpoint 1.116 (colored)

sync with head

Revision 1.124 / (download) - annotate - [select for diffs], Wed Aug 19 21:36:47 2009 UTC (2 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.123: +7 -8 lines
Diff to previous 1.123 (colored)

Since the intention in capturing a device's PCI Configuration Space
in pci_probe_device() is for pcidevdetached() to restore the device's
original PCI Configuration Space after it is detached, let's capture
a device's PCI configuration before attaching a driver to it instead
of after.  Capturing the configuration after attaching is too late,
because a driver such as ath(4) may put a device to sleep promptly
after attaching it, and putting a PCI device to sleep often entails
changing PCI configuration from defaults.

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:58 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.121.2.1: +25 -25 lines
Diff to previous 1.121.2.1 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored)

Sync with HEAD.

Revision 1.116.4.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:05 2009 UTC (2 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.116.4.2: +25 -25 lines
Diff to previous 1.116.4.2 (colored) to branchpoint 1.116 (colored)

sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Sat Jul 4 21:01:10 2009 UTC (2 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.122: +25 -25 lines
Diff to previous 1.122 (colored)

remove useless parenthesis

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:27 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.121: +5 -4 lines
Diff to previous 1.121 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.116.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:58 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.116.4.1: +18 -14 lines
Diff to previous 1.116.4.1 (colored) to branchpoint 1.116 (colored)

sync with head.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:57 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.119.2.1: +5 -4 lines
Diff to previous 1.119.2.1 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

Sync with HEAD.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Apr 2 00:09:33 2009 UTC (3 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.121: +5 -4 lines
Diff to previous 1.121 (colored)

During shutdown, detach devices in an orderly fashion.

Call the detach routine for every device in the device tree, starting
with the leaves and moving toward the root, expecting that each
(pseudo-)device driver will use the opportunity to gracefully commit
outstandings transactions to the underlying (pseudo-)device and to
relinquish control of the hardware to the system BIOS.

Detaching devices is not suitable for every shutdown: in an emergency,
or if the system state is inconsistent, we should resort to a fast,
simple shutdown that uses only the pmf(9) shutdown hooks and the
(deprecated) shutdownhooks.  For now, if the flag RB_NOSYNC is set in
boothowto, opt for the fast, simple shutdown.

Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence
that it is safe to detach a device during shutdown.  Introduce macros
CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf
attachments with default device flags.  Add DVF_DETACH_SHUTDOWN
to configuration attachments for atabus(4), atw(4) at cardbus(4),
cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4),
elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4),
pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4).

Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the
autoconf code and a device driver that the reason for detachment is
system shutdown.

Add a sysctl, kern.detachall, that tells the system to try to detach
every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN
flag.  The default for kern.detachall is 0.  SET IT TO 1, PLEASE, TO
HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN.

This is a work in progress.  In future work, I aim to treat
pseudo-devices more thoroughly, and to gracefully tear down a stack of
(pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and
raid(4) instances at shutdown.

Also commit some changes that are not easily untangled from the rest:

(1) begin to simplify device_t locking: rename struct pmf_private to
device_lock, and incorporate device_lock into struct device.

(2) #include <sys/device.h> in sys/pmf.h in order to get some
definitions that it needs.  Stop unnecessarily #including <sys/device.h>
in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases
building.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:26 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.119: +5 -7 lines
Diff to previous 1.119 (colored)

Sync with HEAD.

Revision 1.110.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:01 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.110.6.4: +3 -5 lines
Diff to previous 1.110.6.4 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

Sync with HEAD.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:33 2008 UTC (3 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.120: +4 -5 lines
Diff to previous 1.120 (colored)

replace bitmask_snprintf(9) with snprintb(3)

Revision 1.118.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:36 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.118.2.1: +3 -4 lines
Diff to previous 1.118.2.1 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.119.4.1 / (download) - annotate - [select for diffs], Thu Nov 20 02:40:59 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-1, netbsd-5-0, matt-nb5-mips64
Changes since 1.119: +3 -4 lines
Diff to previous 1.119 (colored)

Pull up following revision(s) (requested by bouyer in ticket #66):
	sys/dev/pci/pci.c: revision 1.120
Do not depend on physmem for pci_dma64_available(). On some systems (e.g. Xen,
or any system with non-contigous physical memory), physmem may not represent
the hightest physical address available.
Discussed on tech-kern@ some weeks ago.

Revision 1.120 / (download) - annotate - [select for diffs], Sun Nov 16 17:31:03 2008 UTC (3 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.119: +3 -4 lines
Diff to previous 1.119 (colored)

Do not depend on physmem for pci_dma64_available(). On some systems (e.g. Xen,
or any system with non-contigous physical memory), physmem may not represent
the hightest physical address available.
Discussed on tech-kern@ some weeks ago.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:39 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.118: +11 -6 lines
Diff to previous 1.118 (colored)

Sync with HEAD.

Revision 1.117.2.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:32:17 2008 UTC (3 years, 7 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.117.2.1: +11 -6 lines
Diff to previous 1.117.2.1 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

Sync with HEAD.

Revision 1.110.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:27 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.110.6.3: +9 -4 lines
Diff to previous 1.110.6.3 (colored) to branchpoint 1.110 (colored)

Sync with HEAD.

Revision 1.119 / (download) - annotate - [select for diffs], Fri Sep 19 14:37:13 2008 UTC (3 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.118: +11 -6 lines
Diff to previous 1.118 (colored)

Complain about devices with misaligned PCI capability pointers instead
of panicing. Christoph Schug reported that such a device is made by
Nvidia.

Revision 1.110.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:09 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.110.6.2: +1 -1 lines
Diff to previous 1.110.6.2 (colored) to branchpoint 1.110 (colored)

Sync with HEAD.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:12 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.117.4.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:19 2008 UTC (3 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored) next main 1.118 (colored)

Sync with head.

Revision 1.116.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:41 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.116.2.1: +3 -3 lines
Diff to previous 1.116.2.1 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored)

sync with head.

Revision 1.118 / (download) - annotate - [select for diffs], Thu Jun 12 22:44:47 2008 UTC (3 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored)

use device_lookup_private to get softc

Revision 1.110.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:42 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.110.6.1: +26 -10 lines
Diff to previous 1.110.6.1 (colored) to branchpoint 1.110 (colored)

Sync with HEAD.

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:21 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.116: +23 -7 lines
Diff to previous 1.116 (colored)

sync with head.

Revision 1.116.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:44 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.116: +23 -7 lines
Diff to previous 1.116 (colored)

sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Mon May 5 20:14:30 2008 UTC (4 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.116: +23 -7 lines
Diff to previous 1.116 (colored)

Restore PCI devices to a state that is closer to the state that
NetBSD finds them in: save and restore power management state
(D0..D3) and PCI Configuration Registers 0x0 through 0x40 during
device attachment and detachment, respectively.  Among other things,
this will fix sip(4) detachment and re-attachment.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Apr 9 17:01:53 2008 UTC (4 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.115: +7 -7 lines
Diff to previous 1.115 (colored)

Export some PCI autoconf routines for use by elansc(4), for example.

Revision 1.110.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:52 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.110: +68 -45 lines
Diff to previous 1.110 (colored)

Sync with HEAD.

Revision 1.93.2.10 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:51 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.9: +34 -33 lines
Diff to previous 1.93.2.9 (colored) next main 1.94 (colored)

sync with head.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:48 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.110: +61 -40 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Mar 23 16:40:12 2008 UTC (4 years, 2 months ago) by cube
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Changes since 1.114: +11 -9 lines
Diff to previous 1.114 (colored)

Split device_t and softc for pci(4).

Revision 1.103.24.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:49 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.103.24.2: +64 -39 lines
Diff to previous 1.103.24.2 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Fri Mar 21 07:47:43 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.113: +27 -28 lines
Diff to previous 1.113 (colored)

pci_activate() expects for its void * argument to be a device_t,
so change the type of the argument to device_t.  Update each use
of pci_activate().

Use device_t and accessors.  Use aprint_*_dev().

Revision 1.93.2.9 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:12 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.8: +16 -3 lines
Diff to previous 1.93.2.8 (colored)

sync with head.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Feb 28 14:25:12 2008 UTC (4 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.112: +16 -3 lines
Diff to previous 1.112 (colored)

Extend the pmf suspend/resume hooks by a shutdown method, so drivers
can register a shutdown handler explicitely.
Install a pci bus shutdown handler which disables bus master accesses
for all childs, so the drivers don't need to care.
This will hopefully be sufficient to replace the shutdownhooks
(together with the powerhooks). (It has been suggested to use some
general event notification framework for shutdown handlers, but there
might be cases where shutdown handlers must be run in an order following
the device hierarchy, which wouldn't be easy with event handlers
not tied to drivers.)
approved by David Young

Revision 1.93.2.8 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:35 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.7: +22 -13 lines
Diff to previous 1.93.2.7 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Feb 23 00:27:53 2008 UTC (4 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.111: +7 -10 lines
Diff to previous 1.111 (colored)

Simplify the switch-statement in pci_set_powerstate_int(), and fix
a couple of typos so that it will work as I think that it was
intended to: delay for 10000us or 200us on transitions to/from D3
or D2 state, respectively.  Discussed this with jmcneill@.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Feb 21 22:02:22 2008 UTC (4 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.110: +19 -7 lines
Diff to previous 1.110 (colored)

-fix the delay logics in "set powerstate" for the cases that D2 or D3
 are switched to (was harmless because we don't do D2 yet and also
 don't (hmm - shouldn't) access devices in D3 (which would only make
 sense if we'd support D3hot)
-zero the io/mem/master enable bits before entering D3
 (The special handling of PCI_CLASS_DISPLAY devices is questionable
  here -- we can't care about the console if we are seriously follow
  the spec, and upstream bridges aren't considered anyway.)
-add exact references to the PCI PM spec

Revision 1.104.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:58 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.104.4.3: +41 -3 lines
Diff to previous 1.104.4.3 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored)

Sync with HEAD.

Revision 1.93.2.7 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:32 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.6: +7 -3 lines
Diff to previous 1.93.2.6 (colored)

sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jan 28 22:48:43 2008 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.109: +7 -3 lines
Diff to previous 1.109 (colored)

PCI Power Management 1.2 says that system software should wait 10ms after
transitioning a device to or from D3hot, 200us to or from D2, and no wait
for D1 transitions. Update pci_set_powerstate_int to match the spec,
rather than naively waiting 1ms after every state transition.

Revision 1.93.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:08 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.5: +196 -110 lines
Diff to previous 1.93.2.5 (colored)

sync with head

Revision 1.103.24.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:55 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.103.24.1: +214 -114 lines
Diff to previous 1.103.24.1 (colored) to branchpoint 1.103 (colored)

sync with HEAD

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:14 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.107.2.1: +34 -0 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

Sync with HEAD

Revision 1.109 / (download) - annotate - [select for diffs], Thu Jan 3 23:15:43 2008 UTC (4 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.108: +36 -2 lines
Diff to previous 1.108 (colored)

Disable pci_disable_retry() and cardbus_disable_retry(), with a
long comment on pci_disable_retry() (cross-referenced at
cardbus_disable_retry()) that explains why.

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:51 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.107: +6 -2 lines
Diff to previous 1.107 (colored)

Sync with HEAD

Revision 1.104.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:20 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.104.4.2: +162 -110 lines
Diff to previous 1.104.4.2 (colored) to branchpoint 1.104 (colored)

Sync with HEAD.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:02 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.106: +162 -110 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 16 21:28:32 2007 UTC (4 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.107: +6 -2 lines
Diff to previous 1.107 (colored)

Improve pci, cbb, cardslot, cardbus, and pcmcia to support detachment
of this entire device tree:

pci0 at mainbus0
        elansc0 at pci0
                gpio0 at elansc0
        cbb0 at pci0
                cardslot0 at cbb0
                        cardbus0 at cardslot0
                        pcmcia0 at cardslot0
        cbb1 at pci0
                cardslot1 at cbb1
                        cardbus1 at cardslot1
                                rtw0 at cardbus1
                        pcmcia1 at cardslot1
        sip0 at pci0
                nsphyter0 at sip0
        sip1 at pci0
                nsphyter1 at sip1

Whew!

Revision 1.106.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:32:19 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.106: +158 -110 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:11 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.106: +158 -110 lines
Diff to previous 1.106 (colored)

Merge jmcneill-pm branch.

Revision 1.104.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:45 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.104.4.1: +7 -7 lines
Diff to previous 1.104.4.1 (colored) to branchpoint 1.104 (colored)

Sync with HEAD.

Revision 1.103.22.13 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:31 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.12: +9 -9 lines
Diff to previous 1.103.22.12 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.93.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:30:28 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.4: +7 -7 lines
Diff to previous 1.93.2.4 (colored)

sync with head

Revision 1.103.22.12 / (download) - annotate - [select for diffs], Tue Dec 4 00:43:12 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.11: +4 -3 lines
Diff to previous 1.103.22.11 (colored) to branchpoint 1.103 (colored)

Don't neglect to install a power handler in the event of no spaces being
available.

Revision 1.103.22.11 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:37 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.22.10: +7 -7 lines
Diff to previous 1.103.22.10 (colored) to branchpoint 1.103 (colored)

Sync with HEAD.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Dec 1 16:46:18 2007 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.105: +7 -7 lines
Diff to previous 1.105 (colored)

Empty vessels make the most noise

Revision 1.103.22.10 / (download) - annotate - [select for diffs], Sat Dec 1 04:31:37 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.9: +6 -12 lines
Diff to previous 1.103.22.9 (colored) to branchpoint 1.103 (colored)

It seems that a hack to force PCI bridges to enable i/o and mem space
snuck in with the previous commit. Revert that piece.

Revision 1.103.22.9 / (download) - annotate - [select for diffs], Sat Dec 1 04:25:37 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.8: +15 -6 lines
Diff to previous 1.103.22.8 (colored) to branchpoint 1.103 (colored)

Don't actually power off vga in the PCI pnp bus handler, as it may be the
console device and it's nice to be able to figure out why we have crashed
if we fail to sleep.

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:14 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.104: +16 -2 lines
Diff to previous 1.104 (colored)

Sync with HEAD.

Revision 1.93.2.4 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:24 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.3: +16 -2 lines
Diff to previous 1.93.2.3 (colored)

sync with head.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:26 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.104: +16 -2 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Sync with HEAD

Revision 1.105 / (download) - annotate - [select for diffs], Mon Nov 12 19:54:36 2007 UTC (4 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.104: +16 -2 lines
Diff to previous 1.104 (colored)

Merge pci_disable_retry function from jmcneill-pm as it is found in
various drivers.

Revision 1.103.24.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:23 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored)

sync with HEAD

Revision 1.103.22.8 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:27 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.22.7: +59 -235 lines
Diff to previous 1.103.22.7 (colored) to branchpoint 1.103 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.93.2.3 / (download) - annotate - [select for diffs], Sat Oct 27 11:33:23 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.2: +3 -2 lines
Diff to previous 1.93.2.2 (colored)

sync with head.

Revision 1.103.8.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:12 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored) next main 1.104 (colored)

Sync with head.

Revision 1.103.26.1 / (download) - annotate - [select for diffs], Thu Oct 18 08:33:08 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored) next main 1.104 (colored)

sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Oct 16 18:25:53 2007 UTC (4 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored)

Merge 1.103.22.4 from jmcneill-pm:
Decode capabilities for PCI-PCI bridges as well.

Revision 1.103.22.7 / (download) - annotate - [select for diffs], Mon Oct 1 05:37:50 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.22.6: +252 -159 lines
Diff to previous 1.103.22.6 (colored) to branchpoint 1.103 (colored)

Extend device API by device_power_private and device_power_set_private.
The latter is a temporary mean until the pnp_register API itself is
overhault. This functions allow a generic power handler to store its
state independent of the driver.

Use this and revamp the PCI power handling. Pretty much all PCI devices
had power handlers that did the same thing, generalize this in
pci_generic_power_register/deregister and the handler. This interface
offers callbacks for the drivers to save and restore state on
transistions. After a long discussion with jmcneill@ it was considered
to be powerful enough until evidence is shown that devices can handle
D1/D2 with less code and higher speed than without the full
save/restore. The generic code is carefully written to handle device
without PCI-PM support and ensure that the correct registers are written
to when D3 loses all state.

Reimplement the generic PCI network device handling on
top of PCI generic power handling.

Introduce pci_disable_retry as used and implemented locally at least by
ath(4) and iwi(4). Use it in this drivers to restore behaviour from
before the introduction of generic PCI network handling.

Convert all PCI drivers that were using pnp_register to the new
framework. The only exception is vga(4) as it is commonly used as
console device. Add a note therein that this should be fixed later.

Revision 1.103.22.6 / (download) - annotate - [select for diffs], Tue Sep 11 11:59:59 2007 UTC (4 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.5: +3 -2 lines
Diff to previous 1.103.22.5 (colored) to branchpoint 1.103 (colored)

Missing break after PNP_REQUEST_SET_STATE.

Revision 1.103.22.5 / (download) - annotate - [select for diffs], Thu Aug 23 09:32:51 2007 UTC (4 years, 9 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.22.4: +73 -2 lines
Diff to previous 1.103.22.4 (colored) to branchpoint 1.103 (colored)

Introduce pci_net_generic_power, which should be enough for most
network drivers and be a good foundation for C&P for the rest.

For iwi(4), don't reset the PCI retry register again, pci_conf_restore
should take care of that already.

For bge(4), add a NetBSD style if_stop.

Revision 1.103.22.4 / (download) - annotate - [select for diffs], Tue Aug 21 06:33:51 2007 UTC (4 years, 9 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.22.3: +3 -2 lines
Diff to previous 1.103.22.3 (colored) to branchpoint 1.103 (colored)

Decode capabilities for PCI-PCI bridges as well.

Revision 1.103.22.3 / (download) - annotate - [select for diffs], Mon Aug 6 04:15:35 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.2: +3 -3 lines
Diff to previous 1.103.22.2 (colored) to branchpoint 1.103 (colored)

Fix compilation with DIAGNOSTIC.

Revision 1.103.22.2 / (download) - annotate - [select for diffs], Sun Aug 5 19:33:02 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.22.1: +8 -4 lines
Diff to previous 1.103.22.1 (colored) to branchpoint 1.103 (colored)

In pci_conf_restore, don't bother updating a register if the current value
matches the new value.

Revision 1.103.22.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:20 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103: +87 -22 lines
Diff to previous 1.103 (colored)

Pull in power management changes from private branch.

Revision 1.93.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:46 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93.2.1: +91 -3 lines
Diff to previous 1.93.2.1 (colored)

sync with head.

Revision 1.99.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:45 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.99.6.1: +7 -7 lines
Diff to previous 1.99.6.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

sync with head.

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.99: +91 -3 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: yamt-x86pmap, vmlocking, matt-armv6, jmcneill-pm
Changes since 1.102: +7 -7 lines
Diff to previous 1.102 (colored)

__unused removal on arguments; approved by core.

Revision 1.99.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:18 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.99: +94 -6 lines
Diff to previous 1.99 (colored)

sync with head

Revision 1.102 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:32 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.101: +7 -6 lines
Diff to previous 1.101 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.101 / (download) - annotate - [select for diffs], Mon Oct 2 21:23:44 2006 UTC (5 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

Print error on powerhook_establish failure, not success. PR# 34698.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Sep 25 23:09:42 2006 UTC (5 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.99: +89 -2 lines
Diff to previous 1.99 (colored)

Create a PCI bus powerhook to handle setting PCI D# power state transitions
on suspend/standby/resume.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:18 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.97: +124 -80 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

sync with head

Revision 1.98.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:28 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.98: +122 -77 lines
Diff to previous 1.98 (colored) next main 1.99 (colored)

Merge from HEAD.

Revision 1.97.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:22 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.97.8.1: +122 -77 lines
Diff to previous 1.97.8.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

sync with head.

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:05 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.93: +132 -105 lines
Diff to previous 1.93 (colored)

sync with head.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:01:36 2006 UTC (5 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.98: +122 -77 lines
Diff to previous 1.98 (colored) next main 1.99 (colored)

Sync with head.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Jun 17 23:34:27 2006 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.98: +122 -77 lines
Diff to previous 1.98 (colored)

re-factor the pci powestate api. reviewed by gimpy

Revision 1.97.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:15 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.97: +4 -5 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Sync with head.

Revision 1.97.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:25:36 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.97: +4 -5 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

sync with head.

Revision 1.97.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:16 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.97: +4 -5 lines
Diff to previous 1.97 (colored)

sync with head.

Revision 1.97.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:23 2006 UTC (6 years, 1 month ago) by tron
Branch: peter-altq
Changes since 1.97: +4 -5 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Mar 29 06:00:46 2006 UTC (6 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, elad-kernelauth-base
Branch point for: gdamore-uart, chap-midi
Changes since 1.97: +4 -5 lines
Diff to previous 1.97 (colored)

Replace device_locators() with device_locator(), and use it.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

merge ktrace-lwp.

Revision 1.80.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:02 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.7: +32 -65 lines
Diff to previous 1.80.2.7 (colored) next main 1.81 (colored)

Sync with HEAD. Here we go again...

Revision 1.96 / (download) - annotate - [select for diffs], Fri Aug 26 11:01:43 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.95: +5 -4 lines
Diff to previous 1.95 (colored)

use XXXCF_NLOCS constants instead of magic numbers

Revision 1.95 / (download) - annotate - [select for diffs], Thu Aug 25 22:33:19 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.94: +3 -19 lines
Diff to previous 1.94 (colored)

kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
	then fail
else
	ask device match function

This is handled by config_stdsubmatch() now.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Aug 25 18:35:39 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.93: +9 -11 lines
Diff to previous 1.93 (colored)

replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jun 28 00:28:42 2005 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.92: +24 -40 lines
Diff to previous 1.92 (colored)

Use ANSI function decls and static.

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:07 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.89: +32 -8 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

sync with -current

Revision 1.89.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.89.6.1: +3 -3 lines
Diff to previous 1.89.6.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.80.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:21 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.6: +3 -3 lines
Diff to previous 1.80.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.92 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:33 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

nuke trailing whitespace

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:48 2005 UTC (7 years, 3 months ago) by yamt
Branch: yamt-km
Changes since 1.89: +31 -7 lines
Diff to previous 1.89 (colored)

sync with head.

Revision 1.80.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:46:39 2005 UTC (7 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.5: +31 -7 lines
Diff to previous 1.80.2.5 (colored)

Sync with HEAD.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Feb 4 02:10:45 2005 UTC (7 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base2, matt-timespec
Changes since 1.90: +7 -7 lines
Diff to previous 1.90 (colored)

de-__P

Revision 1.90 / (download) - annotate - [select for diffs], Wed Jan 26 21:49:00 2005 UTC (7 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.89: +26 -2 lines
Diff to previous 1.89 (colored)

Add support functions for capturing and restoring PCI configuration
registers for power management code.

Revision 1.80.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:04 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.4: +2 -2 lines
Diff to previous 1.80.2.4 (colored)

Fix the sync with head I botched.

Revision 1.80.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:04 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.3: +8 -8 lines
Diff to previous 1.80.2.3 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Sep 13 12:22:52 2004 UTC (7 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.88: +8 -8 lines
Diff to previous 1.88 (colored)

remove macros which just hide cfdata internals
(and are used at one place only)

Revision 1.80.2.3 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:28 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.2: +2 -5 lines
Diff to previous 1.80.2.2 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Mon Aug 30 15:05:20 2004 UTC (7 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.87: +2 -5 lines
Diff to previous 1.87 (colored)

Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:06 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80.2.1: +71 -18 lines
Diff to previous 1.80.2.1 (colored)

Sync with HEAD.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Aug 17 23:20:10 2004 UTC (7 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.86: +71 -18 lines
Diff to previous 1.86 (colored)

make PCI devices attachable/detachable (as far as the particular drivers
allow), and allow to rescan a bus selectively (ie only the device/
function I'm looking at)

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:10 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.80: +75 -51 lines
Diff to previous 1.80 (colored)

Sync with HEAD

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jul 29 16:51:01 2004 UTC (7 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.85: +12 -3 lines
Diff to previous 1.85 (colored)

make the "generic" PCI bus enumeration code the standard case which
gets used if nothing else is defined in MD headers,
introduce a "PCI_MACHDEP_ENUMERATE_BUS" CPP definition which can
be used by MD headers (just 1 port atm) to plug in special code

Revision 1.85 / (download) - annotate - [select for diffs], Mon May 17 16:57:49 2004 UTC (8 years ago) by kochi
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Fix typo (func8 -> func7)

Revision 1.84 / (download) - annotate - [select for diffs], Sat May 8 23:41:40 2004 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.83: +37 -40 lines
Diff to previous 1.83 (colored)

GC pci_{g,s}et_powerstate into pci_powerstate(). Idea from mycroft and gimpy.
Nothing uses them yet.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Apr 23 21:13:07 2004 UTC (8 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region

Revision 1.82 / (download) - annotate - [select for diffs], Mon Aug 18 05:39:07 2003 UTC (8 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.81: +7 -3 lines
Diff to previous 1.81 (colored)

support new quirk bits on debug output

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Fri Aug 15 12:45:51 2003 UTC (8 years, 9 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.65: +23 -9 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Pull up revision 1.81 (requested by itojun in ticket #1412):
- check HDRTYPE early, and ignore if it is not supported (n > 2).
- defer access to interrupt configuration register, as its existence depends on
  HDRTYPE.
- add "skip particular funtion in multifunction device" functionality
  to quirk table.
- add GEODE/NS SC1100 quirk (now boots on soekris Net4801).

Revision 1.81 / (download) - annotate - [select for diffs], Fri Aug 15 07:17:21 2003 UTC (8 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.80: +23 -9 lines
Diff to previous 1.80 (colored)

- check HDRTYPE early, and ignore if it is not supported (n > 2).
- defer access to interrupt configuration register, as its existence depends on
  HDRTYPE.
- add "skip particular funtion in multifunction device" functionality
  to quirk table.
- add GEODE/NS SC1100 quirk (now boots on soekris Net4801).

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jun 15 23:09:09 2003 UTC (8 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.79: +17 -2 lines
Diff to previous 1.79 (colored)

Handle 64bit DMA addresses on PCI for platforms that can (currently only
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.

Revision 1.79 / (download) - annotate - [select for diffs], Sat May 3 18:02:37 2003 UTC (9 years ago) by thorpej
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

Fix inverted logic in pci_vpd_write().  From Jachym Holecek, PR kern/21440.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Apr 29 01:15:39 2003 UTC (9 years ago) by thorpej
Branch: MAIN
Changes since 1.77: +15 -9 lines
Diff to previous 1.77 (colored)

Use aprint*().

Revision 1.77 / (download) - annotate - [select for diffs], Tue Mar 25 21:56:20 2003 UTC (9 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.76: +79 -2 lines
Diff to previous 1.76 (colored)

Add PCI VPD access routines.  From psi.cz!freza, PR kern/20889.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Mar 19 17:56:58 2003 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.75: +4 -2 lines
Diff to previous 1.75 (colored)

It is not appropriate for pcivar.h to include "locators.h"
The two files that need it, should include it themselves.

Revision 1.51.2.10 / (download) - annotate - [select for diffs], Fri Jan 3 17:07:57 2003 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.51.2.9: +4 -4 lines
Diff to previous 1.51.2.9 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:23 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.51.2.9 / (download) - annotate - [select for diffs], Mon Nov 11 22:11:26 2002 UTC (9 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.8: +1 -1 lines
Diff to previous 1.51.2.8 (colored) to branchpoint 1.51 (colored)

Catch up to -current

Revision 1.74 / (download) - annotate - [select for diffs], Wed Oct 23 01:50:12 2002 UTC (9 years, 7 months ago) by perry
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

fix lint warnings about things being stringified under cpp -traditional

Revision 1.51.2.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:13 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.7: +4 -5 lines
Diff to previous 1.51.2.7 (colored) to branchpoint 1.51 (colored)

Catch up to -current.

Revision 1.53.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:01 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.53.2.5: +6 -7 lines
Diff to previous 1.53.2.5 (colored) next main 1.54 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.73 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:50 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Sep 30 20:37:57 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.71: +4 -5 lines
Diff to previous 1.71 (colored)

Use CFATTACH_DECL().

Revision 1.71 / (download) - annotate - [select for diffs], Fri Sep 27 20:40:37 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Declare all cfattach structures const.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 27 03:18:16 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Sep 27 02:24:30 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.

Revision 1.53.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:24 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.53.2.4: +83 -4 lines
Diff to previous 1.53.2.4 (colored)

sync kqueue branch with HEAD

Revision 1.51.2.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:22 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.6: +7 -7 lines
Diff to previous 1.51.2.6 (colored) to branchpoint 1.51 (colored)

Catch up to -current.

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:39 2002 UTC (9 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.63.2.2: +83 -4 lines
Diff to previous 1.63.2.2 (colored) next main 1.64 (colored)

catch up with -current.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jul 5 00:16:26 2002 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Return 0, not NULL, when we mean 0.

Revision 1.53.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:52 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.53.2.3: +156 -165 lines
Diff to previous 1.53.2.3 (colored)

catch up with -current on kqueue branch

Revision 1.67 / (download) - annotate - [select for diffs], Thu Jun 20 23:02:06 2002 UTC (9 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored)

minor KNF

Revision 1.51.2.6 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:39 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.5: +235 -165 lines
Diff to previous 1.51.2.5 (colored) to branchpoint 1.51 (colored)

Catch up to -current.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jun 18 13:18:37 2002 UTC (9 years, 11 months ago) by tshiozak
Branch: MAIN
Changes since 1.65: +81 -2 lines
Diff to previous 1.65 (colored)

add support for the per-device power management capability.

int pci_set_powerstate(pci_chipset_tag_t pc, pcitag_t tag, int newstate)
	set power state of the device to newstate.
int pci_get_powerstate(pci_chipset_tag_t pc, pcitag_t tag)
	get current power state of the device.

In the future, these functions will be used for ACPI support.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Thu May 30 14:46:11 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.63.2.1: +450 -0 lines
Diff to previous 1.63.2.1 (colored)

Catch up with -current.

Revision 1.65 / (download) - annotate - [select for diffs], Sat May 18 21:40:41 2002 UTC (10 years ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Changes since 1.64: +3 -2 lines
Diff to previous 1.64 (colored)

Add "pa_rawintrpin" containing unswizzled interrupt pin to pci_attach_args.

Revision 1.64 / (download) - annotate - [select for diffs], Sat May 18 18:14:11 2002 UTC (10 years ago) by sommerfeld
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

In pci_probe_device(), correct test for whether the device is behind a
pci-pci bridge (and thus needs its interrupts "swizzled").

Formerly, pci_probe_device() assumed pci busses other than bus zero
were bridged; however, much recent x86 hardware supports multiple
primary pci busses differently -- there is a system-wide bus numbering
scheme.  Now, we instead look at the (newly introduced) sc_bridgetag
value in the parent bus to figure out if there's a ppb or equivalent
in the way.

This fixed at least one case where the i386 MP branch gets interrupt
mapping wrong.

Revision 1.63.2.1, Thu May 16 01:03:05 2002 UTC (10 years ago) by gehenna
Branch: gehenna-devsw
Changes since 1.63: +0 -449 lines
FILE REMOVED

file pci.c was added on branch gehenna-devsw on 2002-05-30 14:46:11 +0000

Revision 1.63 / (download) - annotate - [select for diffs], Thu May 16 01:03:05 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Branch point for: gehenna-devsw
Changes since 1.62: +3 -2 lines
Diff to previous 1.62 (colored)

Make sure pa.pa_bus is initialized.  (Thanks, uwe!)

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 16 01:01:29 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

* Add "pcitag_t *pba_bridgetag" to pci_attach_args.  This is set to
  NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.

Revision 1.61 / (download) - annotate - [select for diffs], Wed May 15 19:23:51 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.60: +2 -5 lines
Diff to previous 1.60 (colored)

Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().

Revision 1.60 / (download) - annotate - [select for diffs], Wed May 15 18:39:47 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.59: +13 -3 lines
Diff to previous 1.59 (colored)

Put back __PCI_BUS_DEVORDER for now.

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 15 18:13:00 2002 UTC (10 years ago) by thorpej
Branch: MAIN
Changes since 1.58: +145 -164 lines
Diff to previous 1.58 (colored)

Split the code that enumerates the PCI bus and that actually probes
for a device into two functions:

* pci_probe_device() actually probes/attaches the device specified
  by the provide pcitag_t.

* pci_enumerate_bus() enumerates the bus, and calls pci_probe_device()
  for each device on the bus.  A pci_enumerate_bus_generic() is provided
  which implements the old method of doing this: If something found at
  dev0/func0, determine number of functions and probe each one.

  Machine-dependent code will be able to specify the bus enumeration
  routine in the future.

Revision 1.53.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:54 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.53.2.2: +11 -14 lines
Diff to previous 1.53.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.51.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:23 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.4: +4 -1 lines
Diff to previous 1.51.2.4 (colored) to branchpoint 1.51 (colored)

Catch up to -current.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:47 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (colored)

add RCSID

Revision 1.51.2.4 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:25 2001 UTC (10 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.3: +8 -3 lines
Diff to previous 1.51.2.3 (colored) to branchpoint 1.51 (colored)

Catch up to -current.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Oct 17 22:16:41 2001 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache
Changes since 1.56: +8 -3 lines
Diff to previous 1.56 (colored)

Fix the semantics of __PCI_DEV_FUNCORDER so that they're actually useful:
If __PCI_DEV_FUNCORDER is defined, don't do the song-and-dance to check if
a device is multi-function; machdep code is going to tell us exactly which
functions to probe.

Note this required changing how pci_func_devorder() works in the
sparc64 PCI machdep code; now the "curnode" is assumed to point
to the bus, rather than some function (typically 0) on the device,
just as pci_bus_devorder() makes that assumption.

All this should allow the PCI code to actually locate the second
HME device on a Sun Netra t1, which is at 3,1 -- previously, the
PCI code would have missed it because there is no device at 3,0.

(Sun deserves a brick to the head for this one -- this seems clearly
out of line with the PCI spec.)

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:45:57 2001 UTC (10 years, 7 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.54: +36 -19 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Catch up with -current.

Revision 1.51.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:58 2001 UTC (10 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.2: +36 -19 lines
Diff to previous 1.51.2.2 (colored) to branchpoint 1.51 (colored)

Catch up to -current.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Sep 13 21:49:40 2001 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.55: +1 -12 lines
Diff to previous 1.55 (colored)

Add an ioctl interface to the PCI bus.  Add ioctls to read/write
PCI configuration space registers, and to fetch bus info.

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:57 2001 UTC (10 years, 8 months ago) by thorpej
Branch: kqueue
Changes since 1.53.2.1: +36 -8 lines
Diff to previous 1.53.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 10 10:04:49 2001 UTC (10 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.54: +36 -8 lines
Diff to previous 1.54 (colored)

Add a pci_find_device function, to find a PCI device using a match
function on all (probed) PCI buses:

int     pci_find_device(struct pci_attach_args *pa,
                        int (*match)(struct pci_attach_args *));

The pci_attach_args structure pointed to by pa is filled in if the
device is found, and 1 is returned. Otherwise 0 is returned.

This function is, unfortunately, needed by the i810 agp code. It's
also of use for LKMs.

Also frob pci_probe_bus to take 2 extra args when used by pci_find_device.

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:15 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51.2.1: +3 -4 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored)

Catch up with -current.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:19 2001 UTC (10 years, 9 months ago) by lukem
Branch: kqueue
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (colored)

update to -current

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jul 11 08:36:46 2001 UTC (10 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.53: +3 -4 lines
Diff to previous 1.53 (colored)

don't try to print pcitag_t values; these are opaque values that should not
be interpreted by MI code.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:01 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.51: +11 -1 lines
Diff to previous 1.51 (colored)

Catch up to -current.

Revision 1.53 / (download) - annotate - [select for diffs], Tue May 22 16:10:44 2001 UTC (11 years ago) by thorpej
Branch: MAIN
Branch point for: kqueue
Changes since 1.52: +10 -1 lines
Diff to previous 1.52 (colored)

If the cache line size in the BHLC register is not configured,
then clear the MRL/MRM/MWI command-ok flags when attaching a
device.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Tue May 15 21:00:40 2001 UTC (11 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Pull up revision 1.52 (requested by bouyer):
  Add a pa_bus member to pci_attach_args, so that the PCI bus number
  can be used in pci device drivers.

Revision 1.52 / (download) - annotate - [select for diffs], Fri May 4 15:20:12 2001 UTC (11 years ago) by bouyer
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Add pci bus number to pci_attach_args, as suggested by Jason on tech-kern
(needed for pciide)

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:10 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.42.2.1: +29 -33 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 2 06:24:17 2001 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.50: +29 -6 lines
Diff to previous 1.50 (colored)

allow pci_bus_maxdevs() to be replaced with pci_bus_devorder() and
pci_dev_funcorder() that have the following signatures:

int pci_bus_devorder(pci_chipset_tag_t pc, int bus, char list[32]);
int pci_dev_funcorder(pci_chipset_tag_t pc, int bus, int device, char list[8]);

they control the order of PCI bus probe at the device and function level,
by filling in a value from 0 to 31 for pci_bus_devorder() or 0 to 7 for
pci_dev_funcorder, with a value of -1 to signify no more entries.


when device properties arrive, these will be replaced with some facility
based on properties (design/implementation unknown currently.)

Revision 1.50 / (download) - annotate - [select for diffs], Mon Feb 12 09:14:53 2001 UTC (11 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.49: +1 -28 lines
Diff to previous 1.49 (colored)

backout the parts of the previous change (7 months ago) that were *not* part
of the sys/vm removal, but some (fortunately disabled) work-in-progress.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:30 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.42: +109 -45 lines
Diff to previous 1.42 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jun 28 16:08:48 2000 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.48: +27 -1 lines
Diff to previous 1.48 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.40.6.1 / (download) - annotate - [select for diffs], Tue Jun 27 14:32:06 2000 UTC (11 years, 11 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.40: +33 -29 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull up revision 1.45 (via patch, requested by cgd):
  If the 'PCI_CONFIG_DUMP' option is defined, print a verbose dump
  of all PCI devices' configuration space.

Revision 1.48 / (download) - annotate - [select for diffs], Wed May 10 08:39:58 2000 UTC (12 years ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)

Add a comment describing the previous change.

Revision 1.47 / (download) - annotate - [select for diffs], Mon May 8 10:52:38 2000 UTC (12 years ago) by kleink
Branch: MAIN
Changes since 1.46: +14 -2 lines
Diff to previous 1.46 (colored)

Make pci_get_capability() work correctly on both header type 0 and type 2
devices; both have different Capability List Pointer registers.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Mar 30 12:45:35 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Remove register declarations.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 22 00:47:26 2000 UTC (12 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.44: +35 -29 lines
Diff to previous 1.44 (colored)

if the PCI_CONFIG_DUMP option is defined, set the patchable
pci_config_dump variable to 1.  otherwise, it gets set to 0.  If
that's set, when configuring PCI devices spew the very verbose
configuration space header dump that was previously "#if 0"'d.
If you use this option, or patch the variable to 1, it's strongly
encouraged that you have used the MSGBUFSIZE option to enlarge the
kernel message buffer.

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:21 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.42: +34 -15 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Pull up to last week's -current.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:07 1999 UTC (12 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.42: +34 -15 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with -current

Revision 1.44 / (download) - annotate - [select for diffs], Thu Nov 4 19:03:00 1999 UTC (12 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, chs-ubc2-newbase
Changes since 1.43: +10 -9 lines
Diff to previous 1.43 (colored)

Make sure devices are told they can use rd/line, rd/mult, and wr/inval.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 4 01:03:34 1999 UTC (12 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +25 -7 lines
Diff to previous 1.42 (colored)

Print out if the read {line,multiple} and write/invalidate commands are
okay to use.

Revision 1.40.8.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:18:37 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.40: +1 -1 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Sync w/ -current.

Revision 1.42 / (download) - annotate - [select for diffs], Thu May 6 01:10:28 1999 UTC (13 years ago) by thorpej
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.41: +0 -1 lines
Diff to previous 1.41 (colored)

Back out previous.  Thanks to cgd for pointing out another way to do this.

Revision 1.41 / (download) - annotate - [select for diffs], Thu May 6 01:01:19 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored)

Add a `bus' member to the pci_attach_args.  This is not normally used,
but some child drivers might need to know this information.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Nov 7 16:47:22 1998 UTC (13 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.39: +36 -1 lines
Diff to previous 1.39 (colored)

add support for "extended capabilities" (new in PCI spec 2.2)

Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:46 1998 UTC (13 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Make copyright notices with my name consistent.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 9 18:48:41 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.37: +7 -23 lines
Diff to previous 1.37 (colored)

Remove the PCI-ISA bridge callback mechanism; it's no longer needed.

Revision 1.37 / (download) - annotate - [select for diffs], Sun May 31 06:05:28 1998 UTC (13 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.36: +36 -10 lines
Diff to previous 1.36 (colored)

use the new PCI 'quirks' mechanism to help determine the number
of functions on a given device.  Also, clean up the #if 0'd
major-debugging-spew code so that it's all one piece, so that
it's a bit prettier, and so that it prints out quirk information.

Revision 1.36 / (download) - annotate - [select for diffs], Mon May 18 17:28:07 1998 UTC (14 years ago) by cgd
Branch: MAIN
Changes since 1.35: +11 -3 lines
Diff to previous 1.35 (colored)

add an #if 0'd chunk which will pci_conf_print() every device (spews
lots of data, e.g. ~18k on a PCI system with few add-in devices; use
with MSGBUFSIZE=...).  Useful to have here so that people who want as
much data about the PCI configuration in a machine can get it without
having to craft their own code.  Also, clean up a few of the other
#if 0'd printfs.

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 5 22:14:23 1998 UTC (14 years ago) by mjacob
Branch: MAIN
Changes since 1.34: +3 -1 lines
Diff to previous 1.34 (colored)

more info (in heavy debugging cases) to print

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 17 18:40:31 1998 UTC (14 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.33: +70 -68 lines
Diff to previous 1.33 (colored)

Keep all relevant state information in a "pci_softc" so that it is
accessible at runtime (for LKMs in particular).
Remove BROKEN_INDIRECT_CONFIG.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Mar 28 02:24:04 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

check vendor against PCI_VENDOR_INVALID instead of 0xffff.
Suggested by Soren S. Jorvang.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Mar 20 19:56:19 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.31: +14 -4 lines
Diff to previous 1.31 (colored)

check only the Vendor ID (rather than both the Vendor ID and the Product
ID) when determining if the Vendor ID is invalid.  The spec says that
Vendor ID of 0xffff is invalid, so, it doesn't _matter_ what the product
ID is in that case.  Treat Vendor ID 0 as invalid because we always have.

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Sat Jan 31 00:37:40 1998 UTC (14 years, 3 months ago) by thorpej
Branch: bouyer-scsipi
Changes since 1.31.2.1: +297 -0 lines
Diff to previous 1.31.2.1 (colored) next main 1.32 (colored)

When a PCI bus is attached, print out which bus spaces were enabled
by the parent.

Revision 1.31.2.1, Sat Jan 31 00:37:39 1998 UTC (14 years, 3 months ago) by thorpej
Branch: bouyer-scsipi
Changes since 1.31: +0 -297 lines
FILE REMOVED

file pci.c was added on branch bouyer-scsipi on 1998-01-31 00:37:40 +0000

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jan 31 00:37:39 1998 UTC (14 years, 3 months ago) by thorpej
Branch: MAIN
Branch point for: bouyer-scsipi
Changes since 1.30: +20 -1 lines
Diff to previous 1.30 (colored)

When a PCI bus is attached, print out which bus spaces were enabled
by the parent.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Mon Jan 12 09:40:12 1998 UTC (14 years, 4 months ago) by thorpej
Branch: thorpej-bus-dma
Changes since 1.30.2.1: +278 -0 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Update for config changes.

Revision 1.30.2.1, Mon Jan 12 09:40:11 1998 UTC (14 years, 4 months ago) by thorpej
Branch: thorpej-bus-dma
Changes since 1.30: +0 -278 lines
FILE REMOVED

file pci.c was added on branch thorpej-bus-dma on 1998-01-12 09:40:12 +0000

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jan 12 09:40:11 1998 UTC (14 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-bus-dma-base
Branch point for: thorpej-bus-dma
Changes since 1.29: +1 -5 lines
Diff to previous 1.29 (colored)

Update for config changes.

Revision 1.29.2.2 / (download) - annotate - [select for diffs], Mon Sep 1 20:29:42 1997 UTC (14 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.29.2.1: +282 -0 lines
Diff to previous 1.29.2.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.29.2.1, Sat Aug 30 06:53:57 1997 UTC (14 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.29: +0 -282 lines
FILE REMOVED

file pci.c was added on branch marc-pcmcia on 1997-09-01 20:29:42 +0000

Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 30 06:53:57 1997 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base
Branch point for: marc-pcmcia
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Pass down bus_dma_tag_t's as appropriate (per Jason's bus_dma code).

Revision 1.28 / (download) - annotate - [select for diffs], Sat Aug 30 06:47:44 1997 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +1 -102 lines
Diff to previous 1.27 (colored)

Remove pci_*_find() from here.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 10 23:12:22 1997 UTC (15 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.26: +19 -3 lines
Diff to previous 1.26 (colored)

pass memory- and i/o-enabled flags down via the PCI bus and device attach
arguments, so that a device can tell if its memory and I/O spaces are
enabled.  The flags are cleared, depending on the contents of devices CSR
registers, in the machine-independent PCI bus code.

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Tue Dec 10 05:45:27 1996 UTC (15 years, 5 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

From trunk:
Deal with devices that do not allow allow of the I/O address bits to be set.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Dec 5 01:25:30 1996 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.25: +34 -4 lines
Diff to previous 1.25 (colored)

update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Nov 23 21:58:16 1996 UTC (15 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.24: +43 -1 lines
Diff to previous 1.24 (colored)

Provide a routine so that ISA/EISA bridges can set up a callback so
that their child busses can be attached after the PCI bus
autoconfiguration for their parent bus is done.

This works because:
	(1) there can be at most one ISA/EISA bridge per PCI bus, and
	(2) any ISA/EISA bridges must be attached to primary PCI
	    busses (i.e. bus zero).

That boils down to: there can only be one of these outstanding
at a time, it is cleared when configuring PCI bus 0 before any
subdevices have been found, and it is run after all subdevices
of PCI bus 0 have been found.

This (or something like it) is needed because there are some (legacy)
PCI devices which can show up as ISA/EISA devices as well (the prime
example of which are VGA controllers).  If you attach ISA from a
PCI-ISA/EISA bridge, and the bridge is seen before the video board is,
the board can show up as an ISA device, and that can (bogusly)
complicate the PCI device's attach code, or make the PCI device not be
properly attached at all.

This could be done with machine-dependent code, but as more ports
add support for PCI (and PCI-ISA/EISA bridges) more will need it.
The i386 port could (perhaps should) be converted to use it as well.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 21 22:56:55 1996 UTC (15 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +10 -8 lines
Diff to previous 1.23 (colored)

New bus.h implementation/interface:
	- No more distinction between i/o-mapped and memory-mapped
	  devices.  It's all "bus space" now, and space tags
	  differentiate the space with finer grain than the
	  bus chipset tag.
	- Add memory barrier methods.
	- Implement space alloc/free methods.
	- Implement region read/write methods (like memcpy to/from
	  bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Oct 13 01:38:28 1996 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

backout kprintf changes

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 10 19:58:25 1996 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.21 / (download) - annotate - [select for diffs], Tue Aug 27 21:59:51 1996 UTC (15 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 26 07:13:52 1996 UTC (15 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Add PCI_MAPREG_{IO,MEM}_SIZE(), and use them.

Revision 1.19 / (download) - annotate - [select for diffs], Fri May 3 17:33:49 1996 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (colored)

remove unused variables

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 27 04:08:24 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.17: +144 -13 lines
Diff to previous 1.17 (colored)

modify these to provide a new, better-specified PCI interface
(soon to be documented on mailing lists; eventually in section 9 manual
pages), most importantly:
	(1) support interrupt pin swizzling on non-i386 systems with
	    PCI-PCI bridges (per PPB spec; done, but meaningless, on i386).
	(2) provide pci_{io,mem}_find(), to determine what I/O or memory
	    space is described by a given PCI configuration space
	    mapping register.
	(3) provide pci_intr_map(), pci_intr_string(), and
	    pci_intr_{,dis}establish() to manipulate and print info about
	    PCI interrupts.
	(4) make pci functions take as an argument a machine-dependent
	    cookie, to allow more flexibility in implementation.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 27 00:13:50 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.16: +4 -3 lines
Diff to previous 1.16 (colored)

add definitions for the BIST/Header Type/Latency Timer/Cache Line Size
configuration space register, and use it to determine whether or not
a given PCI device uses multiple functions.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 17 00:55:38 1996 UTC (16 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +8 -4 lines
Diff to previous 1.15 (colored)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 14 04:03:01 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.14: +6 -17 lines
Diff to previous 1.14 (colored)

These devices don't actually need softc's that are supersets of 'struct
device.'  No point in adding that complexity + space if they're not needed,
so axe them.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 14 02:35:32 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.13: +11 -15 lines
Diff to previous 1.13 (colored)

(1) provide #defines for cf_loc[] entries for devices that attach to
    pcibus and pci.
(2) remove the #ifdef i386 from pci.c, and provide a machine-dependent
    hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(3) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 8 20:34:25 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.12: +5 -1 lines
Diff to previous 1.12 (colored)

remember the bus_chipset_tag_t given by our parent, and pass it on to
children.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Mar 4 03:29:20 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.11: +4 -8 lines
Diff to previous 1.11 (colored)

the i386 port no longer attaches isa, eisa, and pci at root.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 2 02:03:55 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

fix uninitialized variable; it shouldn't have been a variable at all.
(when probing to see if a device is there, always probe function 0.)

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 28 01:44:41 1996 UTC (16 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.9: +114 -48 lines
Diff to previous 1.9 (colored)

make PCI bus match/attach and sub-device attachment machine-independent.

Revision 1.9, Sat Jun 17 23:06:44 1995 UTC (16 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -1 lines
FILE REMOVED

oops; forgot this in last commit

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 23 03:43:06 1995 UTC (17 years ago) by cgd
Branch: MAIN
Changes since 1.7: +36 -60 lines
Diff to previous 1.7 (colored)

split single-subdevice lookup & attachment into a subroutine
(pci_attach_subdev()).  remove pciattach() function and the pcicd cfdriver
struct, the former because thre are a lot of attachment actions which really
are machine-dependent (perhaps even "most"), and the latter because now that
both pcimatch() and pciattach() are machine-dependent it's bad style to
declare them here and it gains nothing.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 27 05:44:32 1995 UTC (17 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

include files from the correct places.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 4 09:42:22 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +25 -21 lines
Diff to previous 1.5 (colored)

Make a wrapper match function to check the bus and device numbers, rather
than insisting that every driver do it.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 3 22:27:16 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +3 -16 lines
Diff to previous 1.4 (colored)

Rename pciprobe() to pcimatch(), and move it to pci_machdep.c.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 3 22:15:25 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +7 -25 lines
Diff to previous 1.3 (colored)

Always use direct configuration.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 27 04:21:38 1994 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

new RCS ID format.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Wed Aug 10 04:38:34 1994 UTC (17 years, 9 months ago) by mycroft
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

update from trunk

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 10 04:37:52 1994 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored)

Update some comments.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 9 00:47:49 1994 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN

Add PCI autoconfiguration support.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>