summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* - Add sys_tick and the USIII and beyond sys_tick_cmpr to state_regs[].marius2008-08-121-15/+15
| | | | | - Const'ify and static'ize as appropriate. - Use __FBSDID().
* Import xen sub-arch includes.kmacy2008-08-1212-0/+2038
| | | | MFC after: 2 weeks
* Remove unnecessary locking around pointer fetch.kib2008-08-121-2/+0
| | | | Requested by: jhb
* Increase statistic counters for enc0 interface when enabledvanhu2008-08-124-1/+58
| | | | | | | and processing IPSec traffic. Approved by: gnn (mentor) MFC after: 1 week
* Import OS interfaces to Xen services.kmacy2008-08-1268-0/+14624
| | | | MFC after: 2 weeks
* Restore link state handling which was broken in rev 1.69.yongari2008-08-121-4/+1
| | | | | | | | | | | Also report current link state while auto-negotiation is in progress. With this change link loss should be reported within a second and drivers that rely on link state should work. Reported by: Pete French < petefrench at ticketswitch dot com > Tested by: Pete French < petefrench at ticketswitch dot com > MFC after: 1 week
* Remove 'cr' at the end of line.yongari2008-08-121-20/+20
|
* Remove whitespace at the end of line.yongari2008-08-121-10/+10
|
* Remove cxgb private lro implementation and switch to using system ↵kmacy2008-08-126-479/+77
| | | | | | | implementation. Obtained from: Chelsio Inc. MFC after: 1 week
* Vendor fix for PHY problem.kmacy2008-08-117-89/+787
| | | | | Obtained from: Chelsio Inc. MFC after: 3 days
* Decode some more "exotic" instructions including: fxsave, fxrstor, ldmxcsr,jhb2008-08-112-18/+131
| | | | | | | stmxcsr, clflush, lfence, mfence, sfence, syscall, sysret, sysenter, sysexit, pause, monitor, mwait, and swapgs (amd64 only). MFC after: 1 week
* Make sure we check the preselection masks present for all audit pipes.csjp2008-08-111-1/+2
| | | | | | | | It is possible that the audit pipe(s) have different preselection configs then the global preselection mask. Spotted by: Vincenzo Iozzo MFC after: 2 weeks
* MFamd64: Decode "cmov*" instructions.jhb2008-08-111-1/+21
| | | | MFC after: 1 week
* Rework Dallas Semiconductor RTC support.raj2008-08-111-103/+229
| | | | | | | | | - Extend the DS1339 driver to recognize more chips in the family: DS1337, DS1338, DS1339 are now supported - Provide run-time chip detection Reviewed, tested by: stas Obtained from: Piotr Ziecik kosmo ! semihalf dot com
* Rename ds1339 -> ds133x to better fit the upcoming driver extensions.raj2008-08-112-1/+1
|
* - Convert sc_sessions_mtx mutex to a rwlock, so in the fast pathpjd2008-08-112-88/+70
| | | | | | | | | | | (glxsb_process()) we don't block others when looking for our session. - Simplify the loop responsible for freeing sessions on detach. - No need to drop a lock around malloc(M_NOWAIT). - Treat ses_used as boolean. - Avoid gotos where possible. - Various style(9) fixes. Reviewed by: philip, Patrick Lamaiziere <patfbsd@davenulle.org>
* Add an entry for the upgt(4) module.weongyo2008-08-111-0/+1
|
* Connect upgt(4) to the build.weongyo2008-08-111-0/+5
|
* Add Conexant/Intersil PrismGT SoftMAC wireless USB driver - upgt(4).weongyo2008-08-114-0/+2869
| | | | | | | | This driver supports GW3887 based chipsets and works on x86/powerpc/sparc64. You need upgtfw kernel module before loading upgt(4). Please see the manpage. Obtained from: OpenBSD
* Use device_set_desc() instead of device_set_desc_copy() as we don'tyongari2008-08-111-1/+1
| | | | manipulate the verbose description of a device.
* Partial back out r180952.yongari2008-08-111-4/+2
| | | | | | pci_get_vendor() and pci_get_device() don't do configuration space accessses so cahcing them makes no sense. Pointed out by: jhb, imp, des
* Minor typo fix, caught while skimming through the file.keramida2008-08-101-1/+1
|
* Revert r181345.kib2008-08-102-2/+3
| | | | | | | Move the NULL pointer check to the vfs_deleteopt() function. Discussed with: rodrigc MFC after: 3 days
* Move sis to sys/dev/sis for consistency.imp2008-08-104-3/+3
|
* Read the config space of the child, not the bridge, to determine whenimp2008-08-101-5/+5
| | | | the child is out of reset... <blush>
* Move the xl driver form sys/pci to sys/dev/xl for consistency.imp2008-08-104-6/+3
|
* Add quirks for making uhid(4) ignore the Apple iPhone and iPhone 3G.brix2008-08-092-0/+6
| | | | | | Reviewed by: sam Approved by: sam MFC after: 3 days
* Simplify session selection/allocation.pjd2008-08-091-10/+5
|
* - Fix freeing session on newsession failure.pjd2008-08-091-9/+24
| | | | - Update copyright years.
* Implify sessions freeing loop.pjd2008-08-091-2/+1
|
* We don't have to drop a lock around malloc(M_NOWAIT).pjd2008-08-091-4/+4
|
* When freeing session, restore its ID after zeroing memory.pjd2008-08-091-0/+1
| | | | Bug tracked down by: Patrick Lamaiziere <patfbsd@davenulle.org>
* Sessions in-use are at the end of the queue, so use TAILQ_FOREACH_REVERSE()pjd2008-08-091-3/+5
| | | | | | when looking for them. Idea from: Patrick Lamaiziere <patfbsd@davenulle.org>
* fix typoimp2008-08-091-1/+1
| | | | Submitted by: N.J. Mann
* It turns out that checking the first DWORD register is more reliableimp2008-08-091-15/+17
| | | | | | | on a variety of cards. Adjust the comments accordingly to match the code. Even if the vendor chose 0xffff for the device ID, the vendor ID can't be 0xffff, so the test is still valid from a standards perspective.
* Add glxsb(4) driver for the Security Block in AMD Geode LX processors (asphilip2008-08-097-0/+1217
| | | | | | | | | | | | | | found in Soekris hardware, for instance). The hardware supports acceleration of AES-128-CBC accessible through crypto(4) and supplies entropy to random(4). TODO: o Implement rndtest(4) support o Performance enhancements Submitted by: Patrick Lamaizière <patfbsd -at- davenulle.org> Reviewed by: jhb, sam MFC after: 1 week
* Remove unneeded D_NEEDGIANT from /dev/fd/{0,1,2}.ed2008-08-091-1/+0
| | | | | | | | There is no reason the fdopen() routine needs Giant. It only sets curthread->td_dupfd, based on the device unit number of the cdev. I guess we won't get massive performance improvements here, but still, I assume we eventually want to get rid of Giant.
* Nitdes2008-08-091-2/+1
|
* Add sbuf_new_auto as a shortcut for the very common case of creating ades2008-08-0914-23/+25
| | | | | | | completely dynamic sbuf. Obtained from: Varnish MFC after: 2 weeks
* Switch to simplified BSD license (with phk's approval), plus whitespacedes2008-08-092-45/+63
| | | | and style(9) cleanup.
* After some intial testing, there are even slower cards than the onesimp2008-08-091-13/+24
| | | | | | | | | | | | | | | | | | that I have. Wait up to 1.1s for the card to become ready. Document what the standards say, and use that to justify the behavior in the code: PCI standard says that a card must respond to configuration cycles within 2^25 cycles after reset goes high, which is approximately 1s. Therefore, give cards a little break and wait for up to 1.1s for VENDOR to become valid. Only look at the vendor part of the ID, since only it can't be 0xffff (although in practice vendor/device will always be != 0xfffffffff). Include detailed pointers to standards so epople understand why we're doing what we're doing and why it just might be OK. Make it clear in the timeout message that it is just a warning, sinc we try to soldier on as best we can anyway. This should eliminate an error message that r181453 produced on certain Atheros cards.
* Intel describes the behavior of their processors as "undefined" if two oralc2008-08-091-2/+84
| | | | | | | | | | | | more mappings to the same physical page have different memory types, i.e., PAT settings. Consequently, if pmap_change_attr() is applied to a virtual address range within the kernel map, then the corresponding ranges of the direct map also need to be changed. Enhance pmap_change_attr() to handle this case automatically. Add a comment describing what pmap_change_attr() does. Discussed with: jhb
* Verify that the WPA flags set are actually compatible with theimp2008-08-091-4/+13
| | | | | | | driver's set of valid flags. Otherwise, wpa_supplicant wouldn't report an error for old wi cards that can't do WPA. Reviewed by: sam@
* Rather than waiting a fixed amount of time, which might not be enoughimp2008-08-091-12/+23
| | | | | | | | | | | | and also holds things up, check every 20ms to see if we can read the vendor of device 0.0. It will be 0xffffffff until the card is out of reset. Always wait at least 20ms, for safety. I think this is a better fix to the reset problem. However, I did it as a separate commit in case something bad happens, people can roll back to the commit before this one to see if that gives them reliable behavior. I don't have FreeBSD up on enough machines to do exhaustive testing on all known bridges...
* Change -1 to 0xfffffffful since the interface returns uint32_t.imp2008-08-091-1/+1
|
* While most bridges can bring a card out of reset in 20ms, there areimp2008-08-091-3/+4
| | | | | | | | | | | | | | | | some bridge + card combinations that take longer for reasons unknown. Adjust the timeout to be 100ms on all !RICOH bridges, but leave RICOH at 400ms. The 400ms is "lore" from other open source projects, and I've never see my ricoh bridge chips take this long. Maybe it is the same thing? Maybe a bit should be read instead of a hard-wired pause? After this adjustment, a few cards that I'd insert and get only: cbb0: card_power: 3V cbb0: card_power: 0V with full debugging enabled would actually try to attach. Reported by: sam@ (I think) MFC after: 3 days
* Add prototype defination for setfib(2) to sys/socket.h.delphij2008-08-081-0/+1
|
* - Bump __FreeBSD_version for cpuctl(4) added.stas2008-08-081-1/+1
| | | | Approved by: kib
* - Initialize the vm86 structure to a known-good state. Specifically, alwaysjhb2008-08-084-4/+18
| | | | | | | | | set the %eflags used during a BIOS call via BTX to 0x202. Previously the flags field was uninitialized garbage, and thus it was "random" if interrupts were enabled or not during BIOS calls. - Use constants from <machine/psl.h> for fields in %eflags. MFC after: 3 days
* Fix the hangs reported with the real mode BTX:jhb2008-08-081-11/+22
| | | | | | | | | | | | | - I had errantly assumed that all user requests should run with interrupts enabled. User requests for software interrupts, however, need to disable interrupts (and tracing) just like hardware interrupts. - Disable alignment checking when emulating a hardware interrupt as well (based on the description of the real mode operation of the 'INT' instruction in the IA-32 manuals). - Use constants for fields in %eflags. Tested by: bz MFC after: 3 days
OpenPOWER on IntegriCloud