summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add Xircom XEM5600 and known versions of CE2, CEM33 and CEM56.rsm2004-04-091-5/+11
| | | | | | | | Xircom had an unfortunate habit of re-using PCMCIA IDs for quite different cards - the xe driver knows about this and uses the first byte of 'extra' PCMCIA ID info to identify cards with ambiguous IDs. Reviewed by: imp (mentor)
* Reorganise the entropy device so that high-yield entropy sourcesmarkm2004-04-0912-422/+789
| | | | | | | can more easily be used INSTEAD OF the hard-working Yarrow. The only hardware source used at this point is the one inside the VIA C3 Nehemiah (Stepping 3 and above) CPU. More sources will be added in due course. Contributions welcome!
* Omnibus PCI commit:imp2004-04-095-63/+322
| | | | | | | | | | | | | | o Save and restore bars for suspend/resume as well as for D3->D0 transitions. o preallocate resources that the PCI devices use to avoid resource conflicts o lazy allocation of resources not allocated by the BIOS. o set unattached drivers to state D3. Set power state to D0 before probe/attach. Right now there's two special cases for this (display and memory devices) that need work in other areas of the tree. Please report any bugs to me.
* Replace more ad-hoc versions of acpi_GetReference(). Since the type ofnjl2004-04-092-90/+31
| | | | | | Reference objects changed from ACPI_TYPE_ANY to ACPI_TYPE_LOCAL_REFERENCE in Oct. 2002, this may help systems where switching the cooler on failed. We support both types for now until this sorts out.
* Include the prototype for acpi_GetReference.njl2004-04-091-0/+1
|
* Add support for packages as the first element of _PRW. This may allownjl2004-04-092-26/+64
| | | | | | some machines to enable wake events for more devices although I haven't seen a system yet that uses this form. Also, introduce acpi_GetReference() which retrieves an object reference from various types.
* Ooops, removed this acknowledgement bogusly.imp2004-04-091-0/+4
| | | | Eagle Eyes: bde
* Unify on version 1 to be similar to the rest of the tree. After 5-stablenjl2004-04-083-3/+3
| | | | branches, increment version on any API change visible to other modules.
* Back out last bad commit (again!)imp2004-04-071-12/+1
|
* Remove advertising clause from University of California Regent'simp2004-04-0717-75/+15
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Implement an ACPI-aware pci_set_powerstate() method for PCI busses thatjhb2004-04-071-15/+45
| | | | | | | | | are enumerated in the ACPI device tree. In addition to the normal PCI powerstate functionality, the ACPI _PSx methods are executed and ACPI PowerResources are switched on and off via the acpi_pwr_switch_consumer() function. Glanced at by: imp, njl
* Add new ID for Intel 82562ET (ICH5/ICH5R) Pro/100 VE Ethernet.imp2004-04-071-0/+1
| | | | | Submitted by: Stefan Bethke PR: 61320
* Last change was a bogusimp2004-04-071-12/+1
|
* Remove advertising clause from University of California Regent'simp2004-04-071-1/+12
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Better checks to make sure that we get good alignment. This code is aimp2004-04-061-7/+6
| | | | | bit of a bandaide until I get better pci bus code committed to head from my p4 tree.
* Fix mis-merge from p4 by adding line getting sc.imp2004-04-061-2/+9
| | | | Attempt to deal with larger memory allocation better.
* MFP4: Power up with OE disabled. Similar patches went into NetBSD aimp2004-04-061-1/+6
| | | | | while ago, and it does seem to help at least one card I have and has been in my p4 tree for many months.
* Use the correct flag for mbuf allocations (M_DONTWAIT, not M_NOWAIT).iedowse2004-04-061-2/+2
|
* Enable the memory arbiter before turning off the PXE restart. Thisps2004-04-061-4/+4
| | | | | | | prevents NMI's from happening when resetting the chip on some hardware I have seen. Mis-behaving box made available by: John Cagle <john.cagle@hp.com>
* - Rewritten TX to use only two pointers to track producer/consumer.ru2004-04-052-127/+161
| | | | | | - Added polling(4) support! - Bugfix: don't forget to set IFF_OACTIVE when TX list is full. - Minor: tidy up vr_encap().
* - The MiniportReset() function can return NDIS_STATUS_PENDING, in whichwpaul2004-04-051-36/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | case we should wait for the resetdone handler to be called before returning. - When providing resources via ndis_query_resources(), uses the computed rsclen when using bcopy() to copy out the resource data rather than the caller-supplied buffer length. - Avoid using ndis_reset_nic() in if_ndis.c unless we really need to reset the NIC because of a problem. - Allow interrupts to be fielded during ndis_attach(), at least as far as allowing ndis_isr() and ndis_intrhand() to run. - Use ndis_80211_rates_ex when probing for supported rates. Technically, this isn't supposed to work since, although Microsoft added the extended rate structure with the NDIS 5.1 update, the spec still says that the OID_802_11_SUPPORTED_RATES OID uses ndis_80211_rates. In spite of this, it appears some drivers use it anyway. - When adding in our guessed rates, check to see if they already exist so that we avoid any duplicates. - Add a printf() to ndis_open_file() that alerts the user when a driver attempts to open a file under /compat/ndis. With these changes, I can get the driver for the SMC 2802W 54g PCI card to load and run. This board uses a Prism54G chip. Note that in order for this driver to work, you must place the supplied smc2802w.arm firmware image under /compat/ndis. (The firmware is not resident on the device.) Note that this should also allow the 3Com 3CRWE154G72 card to work as well; as far as I can tell, these cards also use a Prism54G chip.
* Converted the isa probe and attach to new-bus so that this driver worksbde2004-04-053-92/+164
| | | | | | | | | | | | | | | | | | | | | without the (defunct) isa compatibility shims. The new-bus-specific parts are very similar to the ones for the pci probe and attach. This was held up too long waiting for a repo copy to src/sys/dev/cy, so I decided to fix the files in their old place. This gives easier to read and merge diffs anyway. The "count" line in src/sys/conf/files won't be changed until after the repo copy, so old kernel configs that specify a count need not be (and must not be) changed until then. The count is just ignored in the driver. One unfinished detail is dynamic allocation of arrays with <count> and (<count> * 32) entries, and iteration over the arrays. This is now kludged with a fixed count of 10 (up to 10 cards with up to 32 ports each). Prodded by: imp Submitted by: mostly by imp Approved by: imp
* Moved initialization of the lock from the (isa) probe function to thebde2004-04-052-12/+12
| | | | | | | common attach function so that the lock gets initialized in all cases. This fixes breakage of the initialization of the lock in the pci case in rev.1.135 (between the releases of 5.1 and 5.2). The lock is only used in the SMP case, so this bug was not always fatal.
* use correct malloc type to allocate struct ieee80211_node'ssam2004-04-051-1/+1
| | | | Noticed by: phk
* Add register definitions for the status and command registers for AGP.imp2004-04-051-0/+22
| | | | | PR: 64846 Submitted by: Samy Al Bahra
* Ever since rev 1.27 of puc.c, the port number that was exposed by puc(4)marcel2004-04-051-1/+1
| | | | | | | | | and used by uart(4) for the channel conflicted with the port offset for the Z8530. The Z8530 has the channels reversed (i.e. channel B is at offset 0 and channel A is at offset 4). Assign the port offsets in the right order so that uart(4) will properly attach to the channels. Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Put a bunch of output that us really only useful in a debugmarkm2004-04-041-1/+13
| | | | | | | | | | scenario into #ifdef DEBUG. This makes my cluster with Belkin KVM switch completely usable, even if the KVM switch and mouse get a bit confused sometimes. Without this, when the mouse gets confused, all sorts of crud gets spammed all over the screen. With this, the mouse may appear dead for a second or three, but it recovers silently.
* - Use an ihandle_t to store the stdout instance handle instead of atmm2004-04-041-2/+2
| | | | | | | | | | | | phandle_t. Since both are typedefed to unsigned int, this is more or less cosmetic. - Fix the code that determines whether a creator instance was used for firmware output (and should not be blanked on initialization). Since r1.2 of dev/fb/creator.c, this consisted comparing a handle of an instance of a package with a handle of the package itself. Use the test from r1.1, which utilizes OF_instance_to_package(). Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Added BSD license, as requested by author.wes2004-04-041-0/+22
| | | | | Requested-by: Stuart Walsh <stu@ipng.org.uk> Message-ID: <20040331190716.GB32835@deepfreeze.stu>
* To quote submitter:marcel2004-04-041-8/+24
| | | | | | | | | | | | | | | "... uart_cpu_sparc64.c currently only looks at /options if ttyX is the selected console. However, there's one case where it should additionally look at /chosen. If "keyboard" is the selected input- device and "screen" the output-device (both via /options) but the keyboard is unplugged, OF automatically switches to ttya for the console. It even prints a line telling so on "screen". Solaris respects this behaviour and uses ttya as the console in this case and people probably expect FreeBSD to do the same (it's also very handy to temporarily switch consoles)..." Submitted by: Marius Strobl <marius@alchemy.franken.de> Has no doubt the change is correct: marcel
* In uart_ebus_probe(), match "su_pnp" besides "su" for ns8250 familymarcel2004-04-031-2/+4
| | | | | | | | of UARTs. We already did this in uart_cpu_getdev(). While here, also check the compat name for "su" or "su16550". Both changes submitted by: Marius Strobl <marius@alchemy.franken.de> Does not doubt the correctness of the second change: marcel
* Add the ability to disable agp devices at the loader prompt. Usage isnjl2004-04-037-0/+14
| | | | | | hint.agp.0.disabled="1" Submitted by: jhb
* Correct a potential panic condition that could be caused when getting ornectar2004-04-031-2/+4
| | | | | | | setting the VGA palette. Reported by: Christer Öberg <christer.oberg@texonet.com> Reviewed by: bde
* Before MFC'ing the previous commit, I noticed I'd left out a case.peadar2004-04-031-0/+1
| | | | | | | Add in missing case for i845G in the attach routine. I'll MFC this with the rest of the change after the 4.10 codefreeze lifts. Reviewed By: Doug Rabson
* In some cases, sf_buf_alloc() should sleep with pri PCATCH; in others, italc2004-04-031-1/+1
| | | | | | | should not. Add a new parameter so that the caller can specify which is the case. Reported by: dillon
* do proper subclassing of node free+copy; the previous hack falls apart whensam2004-04-031-0/+5
| | | | | | the 802.11 layer does useful work Obtained from: madwifi
* do proper subclassing of node free+copy; the previous hack falls apart whensam2004-04-031-2/+8
| | | | | | the 802.11 layer does useful work Obtained from: madwifi
* transmit beacon frames directly instead of defering them to a swi; theresam2004-04-032-4/+8
| | | | | | was too much delay Obtained from: madwifi
* update copyright notice for 2004sam2004-04-024-4/+4
|
* add new statisticssam2004-04-021-0/+3
| | | | Obtained from: madwifi
* check more quickly (and directly) if an interrupt is pending; this reducessam2004-04-021-0/+2
| | | | | | work done in ath_intr when the irq is shared Obtained from: madwifi
* cleanup descriptor allocation if attach failssam2004-04-021-2/+4
| | | | Obtained from: madwifi
* remove use IEEE80211_C_RCVMGTsam2004-04-021-1/+1
|
* style(9): return foo -> return (foo)des2004-04-021-95/+95
| | | | also fix a continuation indent I missed in the previous commit.
* Clean up whitespace, fix continuation indents, wrap some long lines.des2004-04-021-27/+27
|
* Unbreak LINT on 64-bit platforms. Note that this code is not style(9)-des2004-04-023-5/+6
| | | | | | | compliant, but I'll leave that for someone else. Noticed by: tinderbox Pointy hat to: the usual suspects
* Rearrangements needed for syscons(4) to be used as a console devicekensmith2004-04-021-20/+41
| | | | | | | | | | | | | | | | | | | on architectures that need to call cninit() before the machine is ready to support mutexes (required by make_dev()). - Remove make_dev() call from scinit() when flags indicate unit is the system console, rely on sc_attach_unit() to handle it. - When trying to access current screen's status (scr_stat structure) use the static one provided for the initial system console if no dev_t is available. - When calling make_dev() in sc_attach_unit() catch special case of system's initial console and set up dev_t structure to include pointer to console's scr_stat struct. Reviewed by: marcel Tested by: marcel, grehan (ppc), others on current@ Approved by: rwatson (mentor)
* In ns8250_putc() insert a barrier between writing the character andmarcel2004-04-021-0/+1
| | | | checking for transmitter empty.
* Allow the selection of a debug port with hw.uart.dbgport. Unlikemarcel2004-04-021-46/+84
| | | | | other architectures (like ia64), the variable has to be set to an OpenFirmware device name.
* Call kbd_attach() only when KBD_INSTALL_CDEV is enabled as the functionmarcel2004-04-021-0/+2
| | | | is only defined in that case.
OpenPOWER on IntegriCloud