Commit Graph

28635 Commits

Author SHA1 Message Date
bouyer
efd9548b67 Split gcscpcib into MI part, and MD pci attachement which is also in
charge of attaching the MD pcib device.
Will be used by the upcoming evbmips loongson support.
2011-08-27 12:47:49 +00:00
mbalmer
edd34c0a58 u_int32_t -> uin32_t. 2011-08-26 15:00:07 +00:00
mbalmer
de6eed829e Add a pmf resume function to put the hardware in a defined state after
resume.  Problem found by jmcneill@.
2011-08-26 13:29:56 +00:00
mbalmer
d8bf2a4e69 Remove one of the copyrights, it is the same person. Remove variable name
in prototype.
2011-08-26 10:30:47 +00:00
pgoyette
caf255902b Remove some debugging code that was accidentally committed 2011-08-25 02:29:08 +00:00
pgoyette
a4ebf89b5b Update the module command-processing routine to match the ioconf files 2011-08-25 02:27:31 +00:00
dyoung
a33d02a149 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.
2011-08-24 20:27:35 +00:00
veego
82fe371d7e Add the Huawei 1750 id so it change to the 3G modem mode 2011-08-24 19:42:52 +00:00
veego
bb04ce8c3d Regen for the Huawei 1750 id 2011-08-24 19:40:23 +00:00
veego
4706098c29 Add the u3g id for the Huawei 1750 stick 2011-08-24 19:39:05 +00:00
mbalmer
48993feb86 Wrap the include "opt_umass.h" in #ifdef _KERNEL_OPT. 2011-08-24 11:28:50 +00:00
christos
2b857b66d9 defopt UMASS_DEBUG 2011-08-23 16:16:43 +00:00
pgoyette
75c5b19872 Update for modular build 2011-08-23 12:53:29 +00:00
pgoyette
3016e04310 In preparation for building this as a module, clean-up some gcc
-Wsign-compare issues so it will build with WARNS=4
2011-08-23 12:33:50 +00:00
jakllsch
2d6c0de58c Add new CAP2 and BOHC registers. 2011-08-20 16:10:02 +00:00
jakllsch
27e7b644fb Adjust and add AHCI_CAP_IS values. 2011-08-20 16:08:07 +00:00
jakllsch
cf1e0aa0e0 Rework version printout to be more future proof.
Rework features printout using snprintb.
2011-08-20 16:03:48 +00:00
mbalmer
4b13dfd0c4 Remove a commented out include and clarify a comment why the timeout
period is ignored.
2011-08-20 07:32:34 +00:00
wiz
5f2ccc052b Remove semicolon at end of #define line to fix build. 2011-08-19 09:46:10 +00:00
christos
27ad4d2bf8 fix non-literal format strings (Paul Goyette) 2011-08-19 08:25:07 +00:00
christos
756a508c2d Fix gcc-4.5 warnings. If you still see them, e-mail them to me. 2011-08-18 02:18:40 +00:00
christos
32ba7fa0b5 fix gcc-4.5 warnings 2011-08-18 02:08:06 +00:00
dyoung
70183e515a Redefine PCI_MSI_* and PCI_PCIE_* constants in terms of bits(3).
Use named constants and more conventional variable names in
pci_msi_establish() and pci_msi_disestablish().  Fix a couple of bugs:
pci_msi_establish() returned a pointer to the struct intrhand instead of
to the struct msi_hdl as it was intended to, and pci_msi_disestablish()
did not free(9) the msi_hdl.
2011-08-17 00:59:47 +00:00
dyoung
2147a7ca64 To fix i386/ALL kernel, #include <dev/dtv/dtvif.h> for struct
dtv_payload.
2011-08-16 23:35:55 +00:00
dyoung
16bf4208fb Use a recursive lock to ensure that only on thread is in wi_ioctl() at
one time.  It's a recursive lock because sometimes wi_ioctl() recurses
through the network stack (ick).
2011-08-15 18:24:34 +00:00
dyoung
2e0e1dafd6 Don't test truth of a pointer or assign 0 to it but compare / assign
NULL.
2011-08-15 18:04:59 +00:00
dyoung
6ec33ad4b1 Remove superfluous parentheses in return statements. No change in the
generated assembly.
2011-08-15 17:08:00 +00:00
dyoung
66f8d0c4ef Only try to disestablish the interrupt handler if the handler was
previously established.
2011-08-15 17:01:28 +00:00
msaitoh
5688e1797f regen. 2011-08-15 06:13:40 +00:00
msaitoh
2dd01e41ad Sort lines. 2011-08-15 06:13:07 +00:00
jakllsch
17b414a01a Even if the hardware can handle concurrent transfers, ata(4) can't.
Also, completely rework mvsata_bio_ready().

Seems to make mvsata(4) usable on 5182.
2011-08-15 01:04:04 +00:00
mbalmer
c97eb22ebc fix indents 2011-08-14 18:49:17 +00:00
jakllsch
ab2f05745e Spell enqueue correctly. 2011-08-14 16:50:49 +00:00
jakllsch
4e38538497 Fix TLP_DEBUG after previous 2011-08-13 19:23:34 +00:00
jmcneill
e04c7348d5 lg3303 depends on dtv_math, not xc3028 2011-08-13 18:31:38 +00:00
christos
54ac9f2e2d simplifying code, unconfuses gcc index calculation. 2011-08-13 18:13:44 +00:00
jakllsch
0b2bca138d detach childern too 2011-08-13 16:08:23 +00:00
jakllsch
06e8b1bf70 Make correct spelling in comments a higher priority. 2011-08-13 16:04:09 +00:00
jakllsch
c31c99ba01 It's hard to get a backtrace after calling a NULL function pointer,
add KASSERT before calling.
2011-08-13 16:02:48 +00:00
jakllsch
93a4349576 Restore binary compatibility with NetBSD 5 binaries that utilize video(4). 2011-08-13 02:49:06 +00:00
dyoung
ddb7bb5448 Attach ixg(4) to the kernel build (it's not in any kernel
configurations, yet).
2011-08-12 22:02:56 +00:00
dyoung
97579f7a66 Add sources for ixgbe(4), a Intel 82599 10-gigabit ethernet driver
ported from FreeBSD.
2011-08-12 21:55:28 +00:00
mbalmer
b50c50a270 gpio(4) and gpiosim(4) can now be built and used as modules. While here,
make some functions static.
2011-08-12 08:00:52 +00:00
bouyer
2145e1ef4d Regen: add SiS 315 Pro VGA 2011-08-11 17:14:42 +00:00
bouyer
7c8596a4c1 Add SiS 315 Pro VGA 2011-08-11 17:14:12 +00:00
mbalmer
352c784990 pwdog(4) is a device driver for QUANCOM Electronic PWDOG1 PCI
attached watchdog timers.
2011-08-11 07:33:24 +00:00
dyoung
e7e6ed352f Add support for the Oxford Semiconductor OXPCIe952, a 2-port serial chip
with a PCI Express interface, in legacy mode.  Cursorily tested with a
StarTech PEX2S952LP.

See the manual for your adapter to see how to put it into legacy mode.
There is also a "native" mode that uses a different clock multiplier
and (I think) provides a richer feature set, but also requires a bit of
additional initialization (see FreeBSD's puc(4)).

The native-mode PCI functions use different PCI Device IDs than the
legacy-mode functions.
2011-08-09 21:04:05 +00:00
jmcneill
46d3857954 add CLK_DELAY 2011-08-09 11:26:40 +00:00
jmcneill
9bd8d0664c lg3303 should depend on dtv_math, not xc3028 2011-08-09 10:54:22 +00:00
jmcneill
707c764851 add dtv_math.h 2011-08-09 10:53:09 +00:00