Commit Graph

189 Commits

Author SHA1 Message Date
jmcneill 3076984ffe have pci register itself as a module, and make PCI driver modules depend on it 2011-08-29 14:47:07 +00:00
jmcneill 5a2b8072e4 return 'error' not 0, fixes non-module build 2011-08-28 20:37:06 +00:00
jmcneill 7dc79b6997 return 'error' not 0, fixes non-module build 2011-08-28 20:22:42 +00:00
jmcneill 97d971731f add mach64drm, mgadrm, r128drm, savagedrm, sisdrm, and tdfxdrm modules 2011-08-28 16:19:07 +00:00
jmcneill 5494668f55 Split out ati_pcigart into a separate module so it can be shared with r128drm 2011-08-28 15:56:21 +00:00
jmcneill 54d6e22c5d set default WARNS for modules to 3 -- the only one that needs < 3 now is pf 2011-08-28 15:40:49 +00:00
dholland ef311a878c Requires stdint.h. 2011-08-22 00:33:16 +00:00
mrg 59a63b01d0 add a little bit of DRM_NO_AGP to help build on ofppc 2011-08-03 06:42:59 +00:00
jmcneill 6edd5ebb16 Fix AR_SREV_MERLIN_20 and AR_SREV_MERLIN_20_OR_LATER macros to match
rev 2.1 as well as 2.0, from FreeBSD. Fixes 5GHz mode on my 9280.
2011-08-01 10:21:32 +00:00
jakllsch 52d2d92c08 Add additional Radeon devices from FreeBSD via Dragon Fly BSD. 2011-07-25 14:21:52 +00:00
joerg 3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
dyoung e265f67bc1 #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:31:32 +00:00
jruoho f16280b523 More __UNCONST(3). 2011-06-28 09:27:49 +00:00
jruoho 30c90d58f5 Adjust for ACPICA 20110623. 2011-06-28 09:11:33 +00:00
jruoho 8ad757efb2 Merge ACPICA 20110623. 2011-06-28 09:04:29 +00:00
jruoho a8e4c04612 Import ACPICA 20110623.
Selected changes since 20110211 include, among other things, fixes to _PRW
parsing, fix to a regression with the Load() operator, improvements in NULL
package element removal, support for "spurious" global lock interrupts,
execution of orphaned _REG methods under acpiec(4), and smaller iasl(8)
improvements.
2011-06-28 09:01:37 +00:00
joerg 38d1b26693 dma_addr_t may not be a 64bit type, so add an explicit cast here instead
of silent truncation
2011-06-09 14:47:15 +00:00
joerg 986345740c Define a few macros as unsigned to avoid UB when later shifting them
in ways that involve integer overflow.
2011-05-30 13:58:23 +00:00
joerg 45132449f2 Silence warnings about unused return value for a dead hardware read. 2011-05-30 13:57:21 +00:00
joerg e9589da531 Fix format strings to match arguments 2011-05-30 13:52:26 +00:00
joerg 232e4194f9 Remove invalid const, the content is later passed to free. 2011-05-30 13:50:36 +00:00
christos 409ea14c30 more wrong formats. 2011-05-25 15:15:55 +00:00
christos 44751c73dc fix printf formats. 2011-05-25 14:11:36 +00:00
joerg 04061efbeb Use some format specifiers that actually exist 2011-05-24 18:22:02 +00:00
dyoung d3e53912d2 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'
2011-04-04 20:37:49 +00:00
tron 987385a05b Fix build of "radeondrm" kernel module. 2011-03-30 19:59:04 +00:00
mlelstv 4970268137 Add missing agp.h include file. 2011-03-30 17:21:04 +00:00
mlelstv 818c0190bf Make code compile when the kernel has no support for AGP. For now this also
rules out PCIE support without AGP because all the code is drm_agpsupport.c
2011-03-27 08:45:11 +00:00
cegger f2fbc0de6d Get improvements from FreeBSD-current (January 2011).
Successfully tested with WEP, WPA and WPA2 on AR9285.
Reviewed by jmcneill@
2011-03-07 11:25:41 +00:00
jakllsch 65734ab916 Make interrupt establishment failure be noted like most other PCI drivers do. 2011-03-05 21:43:38 +00:00
jakllsch ae52eb0e4e Correct #endif comment. 2011-03-05 21:38:34 +00:00
cegger 6f6097d0cf add defflag for AR9285.
Spotted by jmcneill@
2011-03-05 14:42:11 +00:00
jmcneill f99cc07e58 use pa_intrpin instead of pa_intrline for irq#, since drivers treat irq=0
as "no irq" and this matches pa_intrpin encoding
2011-02-27 01:02:39 +00:00
mrg cba6b56402 change "int pipe" into "unsigned int pipe". 2011-02-24 08:02:55 +00:00
mrg 310cb41fcc convert all crtc values passed in from userland to be unsigned instead
of signed.  there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
2011-02-24 07:59:44 +00:00
cegger 0b677bd453 make it compile with ATHHAL_DEBUG 2011-02-21 13:04:22 +00:00
cegger 9aa13d102d add AR9285 support 2011-02-21 11:06:37 +00:00
jmcneill 074f2fafe1 add AR9280 support 2011-02-20 11:21:02 +00:00
jruoho 93a12f383b Fix wrong note in a comment. 2011-02-20 06:09:16 +00:00
jmcneill 80da431343 support building as a module 2011-02-20 03:55:18 +00:00
jruoho 95a56e1be2 Provide ACPI_CAST_PTHREAD_T(x). 2011-02-18 17:31:14 +00:00
jruoho eb474d132b Revert previous. 2011-02-18 17:26:07 +00:00
jmcneill 4add633a5d sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support 2011-02-18 14:26:09 +00:00
jruoho d47b7e1166 Cast pthread_self(3) to uintptr_t. ACPICA 20100915:
The ACPI_THREAD_ID type is no longer configurable, internally it is now
always UINT64.  This simplifies the ACPICA code, especially any printf
output.  UINT64 is the only common data type for all thread_id types across
all operating systems.  It is now up to the host OSL to cast the native
thread_id type to UINT64 before returning the value to ACPICA (via
AcpiOsGetThreadId).  Lin Ming, Bob Moore.
2011-02-18 13:01:22 +00:00
jmcneill 88c6140601 get rid of this stale copy of via_drv.c, the one we want is in bsd-core 2011-02-18 02:52:42 +00:00
jmcneill 3d85f4c008 get rid of #ifdef __FreeBSD__ sections
use ioconf & add a module dependency on "drm"
2011-02-18 02:00:36 +00:00
jakllsch 1ed4f910c6 Add the RS880 device IDs to radeondrm(4). 2011-02-17 23:21:53 +00:00
jruoho fa8715d817 Fix ACPI_DEBUG build. 2011-02-17 12:08:14 +00:00
jruoho 2edec7caea Sigh. Why some people are unable to write proper C? 2011-02-17 11:21:40 +00:00
jruoho f92834d9d6 __UNCONST(3). 2011-02-17 10:59:31 +00:00