The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.80 / (download) - annotate - [select for diffs], Fri Apr 6 20:24:28 2012 UTC (13 months, 2 weeks ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver, HEAD
Changes since 1.79: +4 -7 lines
Diff to previous 1.79 (colored)

device_pmf_is_registered() is not required

Revision 1.79 / (download) - annotate - [select for diffs], Mon Apr 4 20:37:56 2011 UTC (2 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, 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-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.78: +10 -10 lines
Diff to previous 1.78 (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.78 / (download) - annotate - [select for diffs], Thu Feb 24 20:01:53 2011 UTC (2 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.77: +6 -2 lines
Diff to previous 1.77 (colored)

Add Intel Pineview support

Revision 1.77 / (download) - annotate - [select for diffs], Tue Feb 15 08:57:01 2011 UTC (2 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.76: +101 -10 lines
Diff to previous 1.76 (colored)

add AGP v3 support to agp_generic_enable from FreeBSD

Revision 1.76 / (download) - annotate - [select for diffs], Sat Nov 13 13:52:04 2010 UTC (2 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.75: +2 -4 lines
Diff to previous 1.75 (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.75 / (download) - annotate - [select for diffs], Sun Oct 10 21:24:34 2010 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.74: +35 -0 lines
Diff to previous 1.74 (colored)

restore binary compatibility for amd64; requested by joerg.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Oct 2 21:52:15 2010 UTC (2 years, 7 months ago) by jym
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11
Changes since 1.73: +2 -37 lines
Diff to previous 1.73 (colored)

Revert christos@ fix for the i386 paddr_t change and agp_allocate.

Make 'physical' element of the struct agp_allocate an uint32_t. This
is similar to what other kernels do (at least Solaris and Linux).

This patch should make xserver work again within an i386 userland in a
64 bits paddr_t world.

Thanks to Iain Hibbert for reporting the break, and providing initial hints.

See http://mail-index.netbsd.org/current-users/2010/09/27/msg014418.html

Revision 1.73 / (download) - annotate - [select for diffs], Tue Sep 28 20:14:11 2010 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

make this compile.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Sep 28 14:02:48 2010 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.71: +10 -6 lines
Diff to previous 1.71 (colored)

- fixes from Jean-Yves Migeon
- handle transitional paddr_t period for i386

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 27 22:53:46 2010 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.70: +21 -4 lines
Diff to previous 1.70 (colored)

move all the compat code here, and #ifdef __i386__ from mrg.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Sep 27 21:25:38 2010 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.69: +16 -2 lines
Diff to previous 1.69 (colored)

backwards compat code for paddr_t being 32 bits.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jun 16 03:35:01 2010 UTC (2 years, 11 months ago) by riz
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.68: +18 -2 lines
Diff to previous 1.68 (colored)

Add AGP support for a number of Intel onboard devices, including
82G41, 82B43, E7221, 82965GME, and "Iron Lake".  Device
types (i915, i965, G33, and G4X variants) from the Linux Intel AGP
driver, and (for 82G41) from Henry Bent in PR#42906.

There are a few more varieties that should be relatively low-hanging
fruit ("Pineview" and "Sandy Bridge"), but will require a little bit
of rejiggering of the "chiptype".

OK mrg@

Revision 1.68 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:59 2010 UTC (3 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.67: +4 -4 lines
Diff to previous 1.67 (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.67 / (download) - annotate - [select for diffs], Wed Feb 24 00:01:11 2010 UTC (3 years, 3 months ago) by jym
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

- Use ctob() instead of ptoa() to obtain physical addresses from frame
numbers. Using ptoa() will cast to vaddr_t, which might no be adequate
for architectures where sizeof(paddr_t) > sizeof(vaddr_t) (like i386 PAE).

- small fix inside AGP heuristics to avoid masking high order bits for
systems with more than 4GB.

Reviewed by bouyer@.

See also http://mail-index.netbsd.org/tech-kern/2010/02/22/msg007373.html

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

Expand PMF_FN_* macros.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 27 08:39:33 2009 UTC (4 years, 3 months ago) by markd
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.64: +8 -2 lines
Diff to previous 1.64 (colored)

Add some more Intel G4X class chipsets. Also fix gtt_size for G4X chipsets.
Partially from FreeBSD.   There is still an issue here as G4X chipsets
report an aperture size of 0.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Nov 29 23:48:12 2008 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.63: +4 -2 lines
Diff to previous 1.63 (colored)

Add support for the Intel G45 AGP. From Arnaud Lacombe

Revision 1.63 / (download) - annotate - [select for diffs], Sat Nov 8 17:26:28 2008 UTC (4 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.62: +4 -2 lines
Diff to previous 1.62 (colored)

Support for Intel G35 as found on Asus P5E-VM HDMI motherboard from
Milos Negovanovic

Revision 1.62 / (download) - annotate - [select for diffs], Fri Oct 17 17:15:09 2008 UTC (4 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-5-base, 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, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.61: +5 -3 lines
Diff to previous 1.61 (colored)

add missing free.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Aug 22 18:05:44 2008 UTC (4 years, 9 months ago) by tnn
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.60: +4 -2 lines
Diff to previous 1.60 (colored)

AGP support for Intel 945GME chipset, found on Acer Aspire One.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Aug 19 09:59:54 2008 UTC (4 years, 9 months ago) by matthias
Branch: MAIN
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored)

Add agp support for Intel 946gz.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 9 06:49:54 2008 UTC (4 years, 11 months ago) by freza
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.58: +43 -35 lines
Diff to previous 1.58 (colored)

o Split device_t/softc for agp(4).
o agp_ali.c: remove unused 'agp' member from agp_ali_softc.
o drm: agp_find_device() returns 'void *', not a device_t.
o Use device_t, cfdata_t instead of struct pointers.
o Don't cast void pointers in assignments.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jun 8 12:43:51 2008 UTC (4 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.57: +6 -6 lines
Diff to previous 1.57 (colored)

Replace device_lookup() with device_lookup_private() on getting softc
for future device_t/softc spilt.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 19 09:26:56 2008 UTC (5 years, 1 month ago) by njoly
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.56: +7 -2 lines
Diff to previous 1.56 (colored)

Add missing agp support for ALI M1689 chipset, for PR/35416.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Apr 10 19:13:36 2008 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.55: +7 -7 lines
Diff to previous 1.55 (colored)

use aprint_*_dev and device_xname

Revision 1.55 / (download) - annotate - [select for diffs], Fri Feb 29 06:13:39 2008 UTC (5 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:05 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.53: +16 -2 lines
Diff to previous 1.53 (colored)

Merge jmcneill-pm branch.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:52 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Nov 24 02:19:37 2007 UTC (5 years, 6 months ago) by markd
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.51: +8 -2 lines
Diff to previous 1.51 (colored)

Add agp support for Intel Q35/G33/Q33.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Nov 12 20:00:14 2007 UTC (5 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.50: +27 -16 lines
Diff to previous 1.50 (colored)

Merge bunch of AGP changes from jmcneill-pm.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Oct 30 12:22:53 2007 UTC (5 years, 6 months ago) by jnemeth
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.49: +4 -2 lines
Diff to previous 1.49 (colored)

PR/37201 - Yasushi Oshima -- Intel 82965G chipset support

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:38 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.48 / (download) - annotate - [select for diffs], Wed Aug 15 02:26:13 2007 UTC (5 years, 9 months ago) by markd
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: matt-armv6, bouyer-xenamd64
Changes since 1.47: +4 -2 lines
Diff to previous 1.47 (colored)

Add agp support for i965Q.

Based on a patch for FreeBSD by Eric Anholt.
OKed on tech-kern some months ago.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Aug 4 09:33:05 2007 UTC (5 years, 9 months ago) by kiyohara
Branch: MAIN
CVS Tags: matt-mips64-base
Branch point for: matt-mips64
Changes since 1.46: +24 -2 lines
Diff to previous 1.46 (colored)

Add support agp_amd64. Imported from FreeBSD.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Mar 6 01:09:42 2007 UTC (6 years, 2 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, hpcarm-cleanup
Branch point for: vmlocking, nick-csl-alignment, jmcneill-pm
Changes since 1.45: +16 -15 lines
Diff to previous 1.45 (colored)

Use a mutex rather than lockmgr. Approved by Andrew Doran.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:15 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.44: +7 -7 lines
Diff to previous 1.44 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Dec 18 12:01:48 2006 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.43: +2 -15 lines
Diff to previous 1.43 (colored)

Don't cleanup memory mappings twice. From Blair Sadewitz

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:08 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.42: +9 -9 lines
Diff to previous 1.42 (colored)

__unused removal on arguments; approved by core.

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

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

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 27 23:21:35 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

complete initialization

Revision 1.40 / (download) - annotate - [select for diffs], Thu Aug 17 17:11:28 2006 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored)

Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 30 04:23:44 2006 UTC (6 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.38: +6 -2 lines
Diff to previous 1.38 (colored)

Add support for 82945GM and (untested) 82945P AGP.  FreeBSD and
Linux both treat the 945 series exactly the same as the 915 series
for AGP, so just match a few extra device IDs.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 27 10:34:25 2006 UTC (6 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.37: +6 -4 lines
Diff to previous 1.37 (colored)

Make this build with GCC 4.x.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 16 22:59:36 2006 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, gdamore-uart
Changes since 1.36: +8 -4 lines
Diff to previous 1.36 (colored)

PR/32550: Michael Eriksson: No agp(4) support for i915 integrated graphics

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:48 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored)

merge ktrace-lwp.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 28 00:28:41 2005 UTC (7 years, 10 months ago) by thorpej
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
Branch point for: yamt-lazymbuf
Changes since 1.34: +17 -25 lines
Diff to previous 1.34 (colored)

Use ANSI function decls and static.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:32 2005 UTC (8 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.33: +6 -6 lines
Diff to previous 1.33 (colored)

nuke trailing whitespace

Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 30 15:05:19 2004 UTC (8 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.32: +2 -5 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:22 2004 UTC (9 years, 3 months ago) by wiz
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.31: +3 -3 lines
Diff to previous 1.31 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Aug 26 17:33:23 2003 UTC (9 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

Add support for i865G integrated graphics support to agp(4). Patches
contributed by Michael D. Allen in PR port-i386/22600.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 24 09:38:53 2003 UTC (9 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Add a missing blank line between two functions.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 20 18:56:32 2003 UTC (9 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (colored)

Add support for i855 agp. From FreeBSD.

Approved by: Frank van der Linden <fvdl@netbsd.org>

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:23 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:38 2003 UTC (9 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 24 21:56:00 2003 UTC (10 years, 3 months ago) by tron
Branch: MAIN
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

Don't match a PCI graphics card in a system which supports an AGP.
Patch supplied by Quentin Garnier in PR kern/19256.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:38 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 31 00:07:39 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +5 -3 lines
Diff to previous 1.23 (colored)

Use aprint_*().

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 13 11:32:50 2002 UTC (10 years, 5 months ago) by scw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.22: +4 -5 lines
Diff to previous 1.22 (colored)

Add support for i830/i845 agp. From Shingo WATANABE (on tech-x11) and
FreeBSD, with cleanup/KNF by me.

Note: These chipsets are not well supported by the i810 driver in
NetBSD's in-tree xsrc (based on XFree86 4.2.1 at this time). However,
the driver works perfectly using bleeding-edge XFree86-current on my
Omnibook's i830MG with these agp changes.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:31 2002 UTC (10 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

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

Add trailing ; to CFATTACH_DECL.

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

Use CFATTACH_DECL().

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 27 20:39:42 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Declare all cfattach structures const.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Sep 19 19:04:50 2002 UTC (10 years, 8 months ago) by nathanw
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Slight wording cleanup in a comment.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 6 13:23:20 2002 UTC (10 years, 8 months ago) by gehenna
Branch: MAIN
Changes since 1.16: +12 -3 lines
Diff to previous 1.16 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 11 12:40:47 2002 UTC (10 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.15: +27 -5 lines
Diff to previous 1.15 (colored)

-avoid lock leak in error case
-Free AGP memory on close, to avoid a memory leak in case
 the X server doesn't free it explicitely.
 (It appears that the X server never calls AGPIOC_DEALLOCATE.)
 Fixes PR kern/17869 by Emmanuel Dreyfus.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 27 18:37:10 2002 UTC (10 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Only allow the bus_dmamem_alloc() code to sleep if no physically contigous
pages are insisted in.
Atm, the pglistalloc code does the same automatically, but this might change.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 22 17:29:36 2002 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.13: +5 -2 lines
Diff to previous 1.13 (colored)

Don't pretend we can handle i830; it needs a somewhat different AGP driver.
(I added i830 to quickly.)

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 14 01:38:25 2002 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

Add i830M to agp chip tables.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:40 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored)

add RCSID

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 1 21:54:48 2001 UTC (11 years, 7 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.10: +10 -6 lines
Diff to previous 1.10 (colored)

Don't map the aperture into KVA, it isn't needed.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 16 18:33:08 2001 UTC (11 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base2
Branch point for: thorpej-devvp, nathanw_sa
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

agp_generic_bind_memory(): Don't return NULL if we can't malloc
memory, return ENOMEM.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 15 18:03:35 2001 UTC (11 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

agpopen(): check for NULL softc before dereferencing it.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Sep 15 13:01:44 2001 UTC (11 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.7: +3 -4 lines
Diff to previous 1.7 (colored)

normalize error message if agp_map_aperture() fails

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 15 01:32:10 2001 UTC (11 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +20 -1 lines
Diff to previous 1.6 (colored)

Give each AGP controller its own attribute, and let the "agpbus"
device (rather, the device that carries that attribute) also
carry one or more attributes indicating which type of controller
it might be.

This will allow systems that might have AGP, but would never have
e.g. an Intel PCI-Host bridge, to trim out code that won't be used.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 15 00:52:15 2001 UTC (11 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored)

Use bus_space_mmap() to mmap the aperture.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 15 00:24:59 2001 UTC (11 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +90 -42 lines
Diff to previous 1.4 (colored)

Clean up the AGP match/attach code somewhat.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 14 12:09:14 2001 UTC (11 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.3: +18 -5 lines
Diff to previous 1.3 (colored)

-plug some resource leaks
-don't clear memory ranges on "release"

The X server survives a screen switch now.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Sep 13 16:14:16 2001 UTC (11 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.2: +13 -9 lines
Diff to previous 1.2 (colored)

-allocate DMA maps as large as necessary in the worst case
-allocate space for DMA segments as much as necessary
-fix format warnings in a debug output
-don't try to access AGP capability stuff in the PCI config header
 if it doesn't exist (as on the i810)

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 11 06:51:47 2001 UTC (11 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: kqueue
Changes since 1.1: +8 -5 lines
Diff to previous 1.1 (colored)

Fix i810/other intel chipsets attach mishap.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 10 10:01:01 2001 UTC (11 years, 8 months ago) by fvdl
Branch: MAIN

AGP GART support code. Originally written by Doug Rabson for FreeBSD,
modifications to fit it into the NetBSD device/config structure and
to use bus_dma by me.

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>