#
2d52435a |
| 22-May-2022 |
andvar <andvar@NetBSD.org> |
fix various small typos, mainly in comments.
|
#
70747dc1 |
| 10-Nov-2019 |
chs <chs@NetBSD.org> |
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
#
e8124f7f |
| 15-Oct-2019 |
msaitoh <msaitoh@NetBSD.org> |
Use unsigned to avoid undefined behavior in agpattach(). Found by kUBSan.
|
#
a622d15d |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Fill struct agp_info::ai_devid with the PCI id.
|
#
0e4ada72 |
| 27-Feb-2017 |
msaitoh <msaitoh@NetBSD.org> |
Decode AGP capability.
|
#
1a918832 |
| 25-Jul-2014 |
dholland <dholland@NetBSD.org> |
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
#
2722b1f8 |
| 12-Jun-2014 |
riastradh <riastradh@NetBSD.org> |
Extend agp_generic_bind_memory with bounds to check.
New routine agp_generic_bind_memory_bounded.
Use it in agp_i810 to replace the pile of code I wrote as a replacement which is apparently broken.
|
#
76258fa0 |
| 16-Mar-2014 |
dholland <dholland@NetBSD.org> |
Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found
Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
show more ...
|
#
8b2e8e84 |
| 06-Apr-2012 |
plunky <plunky@NetBSD.org> |
device_pmf_is_registered() is not required
|
#
38e973e4 |
| 04-Apr-2011 |
dyoung <dyoung@NetBSD.org> |
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 eve
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'
show more ...
|
#
aee8082b |
| 24-Feb-2011 |
matt <matt@NetBSD.org> |
Add Intel Pineview support
|
#
f7db9f53 |
| 15-Feb-2011 |
jmcneill <jmcneill@NetBSD.org> |
add AGP v3 support to agp_generic_enable from FreeBSD
|
#
8184d5dc |
| 13-Nov-2010 |
uebayasi <uebayasi@NetBSD.org> |
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.
|
#
d0d0f54f |
| 10-Oct-2010 |
christos <christos@NetBSD.org> |
restore binary compatibility for amd64; requested by joerg.
|
#
c833615d |
| 02-Oct-2010 |
jym <jym@NetBSD.org> |
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 Linu
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
show more ...
|
#
65e9d79b |
| 28-Sep-2010 |
christos <christos@NetBSD.org> |
make this compile.
|
#
bf1dd8ba |
| 28-Sep-2010 |
christos <christos@NetBSD.org> |
- fixes from Jean-Yves Migeon - handle transitional paddr_t period for i386
|
#
dd6d336f |
| 27-Sep-2010 |
christos <christos@NetBSD.org> |
move all the compat code here, and #ifdef __i386__ from mrg.
|
#
2b8db0f1 |
| 27-Sep-2010 |
christos <christos@NetBSD.org> |
backwards compat code for paddr_t being 32 bits.
|
#
42943652 |
| 16-Jun-2010 |
riz <riz@NetBSD.org> |
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
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@
show more ...
|
#
c1b390d4 |
| 24-Feb-2010 |
dyoung <dyoung@NetBSD.org> |
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_
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.
show more ...
|
#
7bf36164 |
| 24-Feb-2010 |
jym <jym@NetBSD.org> |
- 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)
- 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
show more ...
|
#
cd6e1fbf |
| 08-Jan-2010 |
dyoung <dyoung@NetBSD.org> |
Expand PMF_FN_* macros.
|
#
70250ff5 |
| 27-Jan-2009 |
markd <markd@NetBSD.org> |
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.
|
#
78b90029 |
| 29-Nov-2008 |
christos <christos@NetBSD.org> |
Add support for the Intel G45 AGP. From Arnaud Lacombe
|