55758 Commits

Author SHA1 Message Date
glebius
c625a74834 MFC:
Add some initial locking to gif(4), that covers output path.
2006-01-31 15:56:47 +00:00
glebius
fbdc4a3cd4 MFC:
- In pipe() return the error returned by pipe_create(), rather then
    hardcoded ENFILES, which is incorrect. pipe_create() can fail due
    to ENOMEM.
  - Update manual page, describing ENOMEM return code.

  Reviewed by:    arch
2006-01-31 15:44:51 +00:00
glebius
8b1551dbbf MFC 1.182:
Implement 'ipfw fwd laddr,port' feature for UDP. According to ipfw(8)
  it should work, however it never did. People expect it to work.

  PR:		kern/90834
2006-01-31 15:40:15 +00:00
glebius
5ce5257942 MFC 1.27:
Simplify ng_source_send() removing temporary queue and merging two
  cycles into one.
2006-01-31 15:39:05 +00:00
glebius
606be86649 Sync ng_pppoe with HEAD, merging:
- ktr(4) instead of printfs.
- D-Link compat mode.
- style(9) cleanup.
2006-01-31 15:36:11 +00:00
oleg
bbe593a6a4 MFC 1.124:
Fix minor bug in uRPF: if net.link.ether.inet.useloopback=1 and we send
broadcast packet using our own source ip address it may be rejected by
uRPF rules.

PR:		kern/76971
2006-01-31 14:48:03 +00:00
imp
eeccc1a672 I haven't yet merged back the defines from -current for
__PCI_REROUTE_INTERRUPT, so merging it was in error.  I thought I'd
specifically checked before the commit, but it looks like I was wrong.

Thanks to Peter Pentchev (roam@) for his help in finding this...
2006-01-31 14:42:43 +00:00
ssouhlal
e7d3440442 MFC r1.215:
Don't try to load KLDs if we're mounting the root. We'd otherwise panic.

  Tested by:      kris
2006-01-31 06:00:32 +00:00
jkim
1b61c3b069 Move dev/amr/amr_linux.c to where it belongs. 2006-01-30 23:56:44 +00:00
imp
23d8d3a722 MFC: add cardbus_device.c 2006-01-30 23:25:01 +00:00
pjd
b1f53a5dc4 MFC: sys/dev/md/md.c 1.161
Call NDFREE() only when vn_open() succeeded.
2006-01-30 23:03:44 +00:00
ticso
7691e4d261 MFC: 1.18 Remove spl / Restart request on USBD_IOERROR. 2006-01-30 22:47:45 +00:00
marius
4a0340a5b3 MFC: sys/sparc64/central/central.c 1.11, sys/sparc64/ebus/ebus.c 1.25 (partial),
sys/sparc64/fhc/fhc_central.c 1.10, sys/sparc64/fhc/fhc_nexus.c 1.9,
     sys/sparc64/pci/psycho.c 1.59, sys/sparc64/sbus/dma_sbus.c 1.3 - 1.4,
     sys/sparc64/sbus/sbus.c 1.37

- Register the generic implementations for the device shutdown, suspend
  and resume methods so these events propagate through the device driver
  hierarchy.
- Remove dma_setup_intr() (was commented out in RELENG_6).
2006-01-30 22:30:51 +00:00
marius
fdc4af4670 MFC: 1.5
- Only touch the LED bit of the (LED) AUXIO register when turning the
  system LED on or off. Unlike the EBus LED AUXIO register where the
  remaining bits are unused the upper bits of the SBus AUXIO register
  are used to control other things like the link test enable pin of
  the on-board NIC which we don't want to change as a side-effect.
- Remove the superfluous bzero()'ing of the softc obtained from
  device_get_softc().
2006-01-30 21:47:48 +00:00
imp
7f2e5aec50 MFC: Catchup to HEAD
o Move resource allocation into pci layer, rather than duplicating
	  it in this layer (poorly at that).
	o Provide preliminary support for dumping of CardBus card's CIS.
	o Simplify I/O memory range allocations
	o Use PCI layer symbols rather than cardbus layer symbols
	o Improve cis tuple callbacks
2006-01-30 20:04:59 +00:00
imp
04e527ee5b MFC:
1.308, 1.307, 1.306: expose pci_add_resources to the outside
	world.  Implement force in pci_add_map.  Write values of allocated
	resources to the BARs.
	1.304: Improve diagnostic messages
	1.303: Improved resource allocation.
	1.302: Use symbolic names
	1.301: Minor style(9) nitage
	1.296: Allow code to access cached values for CMDREG, CACHLNSZ, MINGNT,
	MAXLAT and LATTIMER.
2006-01-30 18:42:10 +00:00
imp
733d9e5f6a MFC: 1.16 expose pci_add_resources to the outside world (well, pci busses) 2006-01-30 18:38:08 +00:00
imp
44da073941 MFC:
1.69: Remove #ifdef alpha vestige
	1.67: Accessors for CMDREG, CACHELNSZ, MINGNT, MAXLAT and LATTIMER
2006-01-30 18:34:41 +00:00
scottl
b82de437e6 MFC: Diff reduction with HEAD. Whitespace, time_second -> time_uptime,
TAILQ initialization, PCI code refactoring.
2006-01-30 17:56:07 +00:00
glebius
1444c71db7 MFC 1.116:
Check for BGE_RXBDFLAG_IP_CSUM flag before marking mbuf as with valid
  checksum. This fixes operation of PPPoE and other non-IP Ethernet
  protocols.
MFC 1.117:
  Use m_getcl() instead of getting mbuf, and then getting a cluster.
2006-01-30 13:17:44 +00:00
sos
4a73be6cc3 MFC:
Add support for the JMicron JMB360 SATAII controller.
2006-01-30 10:32:40 +00:00
scottl
6abd390244 MFC rev 1.31: Allow the fast taskqueue to run without Giant 2006-01-30 07:51:10 +00:00
thompsa
336b0354fa InstaMFC:
Back out of r1.148, it causes two arp replies to be sent with different mac
 addresses.
2006-01-29 23:22:42 +00:00
imp
72c266522a MFC: PCIR_CARDBUSCIS -> PCIR_CIS 2006-01-29 21:14:28 +00:00
imp
5b5fcbbd37 MFC 1.46-1.51: more defines for capabilities and Cardbus CIS things. 2006-01-29 21:03:46 +00:00
damien
3a8098e703 sync with HEAD. 2006-01-29 15:21:46 +00:00
damien
bfd5a95bf5 sync with HEAD. 2006-01-29 15:13:01 +00:00
damien
384ea2a095 sync ural with HEAD.
Brings automatic rate control in BSS mode and other goodies.
2006-01-29 14:16:36 +00:00
damien
f4e3675df0 sync with HEAD:
r1.27:
o Re-enable scatter/gather
o Change MEM_READ_1/MEM_READ_4 into macros (move them to if_iwireg.h)
o Add support for association LED
o Silently discard f/w notifications that are unknown (fixes spurious
  "unknown notification 15" in logs with latest firmware)
o Fix scanning of 5GHz channels

r1.23:
Fix endianness issues.  iwi now works on big endian architectures too.

r1.22
Be more robust when handling Rx interrupts.  If we can't allocate and DMA map
a new mbuf, just discard the received frame and reuse the old mbuf.
This should fix kernel panics on high network traffic.

r1.20:
o Use firmware extended scan command; this one doesn't crash when scanning
  the 5GHz band.
o Enable 802.11a channels scanning for 2915ABG adapters.
o Fix a typo (negociated->negotiated).
2006-01-29 13:54:19 +00:00
sam
f3bb385026 MFC: switch beacon miss threshold from a time to the number of beacon frames 2006-01-29 07:33:27 +00:00
sam
2564db3b51 MFC 1.86: bounds check each ie's length when parsing 2006-01-29 07:28:02 +00:00
sam
f27a601503 MFC 1.68: propagate current bss state on sta join 2006-01-29 07:20:23 +00:00
sam
8bcd9b14f4 MFC 1.72: bump the scan generation number before iterating 2006-01-29 07:18:09 +00:00
sam
85dc376f3a MFC: update monitoring support 2006-01-29 07:17:02 +00:00
sam
198715ce2a MFC 1.6: add flag to tag frames w/ a known bad FCS 2006-01-29 07:13:58 +00:00
sam
44a7889d74 MFC 1.27:
enable "aggressive mode" only when operating in ap or station mode; in
  particular this fixes use of wme in adhoc demo mode, it wasn't possible
  to set the txop limit because the aggressive mode logic would override
2006-01-29 07:13:03 +00:00
sam
732ef3704c MFC: update erp information element in the beacon frame to reflect
changes in the bss
2006-01-29 07:11:24 +00:00
sam
078bfc3cb8 MFC 1.15: don't assume char is signed 2006-01-29 06:55:03 +00:00
sam
38cecb350f MFC 1.18: bandaid assumption that char is signed 2006-01-29 06:52:35 +00:00
ariff
89b5dd63bd MFC: Enable full duplex operation since it works and to solve panic issue.
PR:	kern/91992
2006-01-29 02:35:19 +00:00
ariff
a7ad96accb MFC: Turn on native 32bit recording (at 48000hz).
It works perfectly on my Compaq Presario M2000Z, but my last attempt
on Acer Ferrari 4000 only produce garbled sound.
2006-01-29 02:33:17 +00:00
ariff
82ac1ac2f7 MFC: Various fixups:
feeder.h:
feeder.c:
        - Implement scoring mechanisme to select best format for conversion.
          This is actually part of newer format chaining procedures which
          will be commited someday. Confusion during chaining process solved
          by this scoring since it will try to reduce list of from/to formats
          to a single, best format.
          Related PR:   kern/91683
channel.c:
        - Simplify feeder building process since we have smarter format
          chaining.
	- (1) Fix DMA alignment, based on bytes per sample.

feeder_fmt.c:
        - Add few more sign conversion feeders for 24 and 32 bit format.

feeder_rate.c:
        - Force buffer / bytes allignment. Unaligned buffer may cause
          panics during recording on pure 32bit sample format if it
          involves feeder_rate as part of feeders chain. Handle strayed
	  bytes (mostly caused by #1) better.
          Tested on: ATI IXP, force 32bit recording.

This DMA alignment issues are extremely hard to reproduce unless the user
happen to have a 32bit capable soundcards (ATI IXP) and knowledgeable enough
to force it to operate under pure 32bit operations on both record and play
directions.
2006-01-29 02:27:28 +00:00
iedowse
a91fa9541a MFC: synchronise the OHCI driver with HEAD:
o Add some identification strings and vendor IDs
 o Set sc_dying to 1 when detaching
2006-01-29 01:26:46 +00:00
flz
107394df65 MFC:
Add Product IDs :
  - Sandisk Cruzer Micro 128MB [5]
  - DANE-ELEC zMate 512MB USB flash drive [7]
  - Attache 256MB USB 2.0 Flash Drive [8]
  - Sandisk Cruzer Micro 256MB [9]

  Add scsi_da.c quirks :
  - Samsung USB key 128Mb [1]
  - Kingston DataTraveler 2.0 [2]
  - Creative MuVo Slim [3]
  - United MP 5512 Portable MP3 Player [4]
  - Sandisk Cruzer Micro 128MB [5], [9]
  - PNY USB Flash keys [6], [7], [8]

  Add umass.c quirks :
  - Sandisk Cruzer Micro 128MB [5]
  - DANE-ELEC zMate 512MB USB flash drive [7]
  - Attache 256MB USB 2.0 Flash Drive [8]
  - Sandisk Cruzer Micro 256MB [9]

      src/sys/dev/usb/usbdevs: rev 1.249 -> 1.250
      src/sys/cam/scsi/scsi_da.c: rev 1.184 -> 1.185
      src/sys/dev/usb/umass.c: rev 1.128 -> 1.130

PR:		usb/90081 [1],
		usb/89196 [2],
		kern/86131 [3],
		usb/80487 [4],
		usb/75970 [5],
		usb/75578 [6],
		usb/72344 [7],
		usb/65436 [8],
		usb/70835 [9]
Submitted by:	Henri-Pierre CHARLES <hpc@prism.uvsq.fr> [1],
		Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> [2],
		Erich Rickheit KSC <rickheit-fbp@numachi.com> [3],
		tnu@chania.di.uoa.gr [4],
		Bram Abbekerk <bram@abbekerk.demon.nl> [5],
		Thomas Pornin <pornin@bolet.org> [6],
		parv <parv@pair.com> [7],
		Peter D. Quilty <pdquilty@adelphia.net> [8],
		Raymundo M. Vega <rvega@ms-smtp-03-eri0.socal.rr.com> [9]
2006-01-29 00:46:57 +00:00
marcel
4ef2eebeda MFC ia64 psABI conformance changes:
s/R_IA64_/R_IA_64_/
	s/DT_IA64_/DT_IA_64_/

	libexec/rtld-elf/ia64/reloc.c:1.17,1.18
	libexec/rtld-elf/ia64/rtld_start.S:1.4
	sys/boot/ia64/efi/start.S:1.9,1.10
	sys/ia64/ia64/elf_machdep.c:1.23
	sys/ia64/ia64/genassym.c:1.42
	sys/ia64/ia64/locore.S:1.39
	sys/ia64/include/elf.h:1.12,1.13,1.14
	usr.bin/elfdump/elfdump.c:1.14
2006-01-28 18:40:55 +00:00
nyan
3857dc83f2 MFi386: revision 1.10.10.1 2006-01-28 07:55:19 +00:00
kris
5eb299b58a MFC: Correct spelling of T_TAG_OFERFLOW
Approved by:	re
2006-01-28 04:02:54 +00:00
truckman
059cbb8ba3 MFC kern_sysctl.c 1.168
Touch all the pages wired by sysctl_wire_old_buffer() to avoid PTE
  modified bit emulation traps on Alpha while holding locks in the
  sysctl handler.
2006-01-28 00:31:56 +00:00
bz
42bcb0a389 MFC:
rev. 1.39 sys/net/if_gre.c
  rev. 1.21 sys/netinet/ip_gre.c      rev. 1.4  sys/netinet/ip_gre.h
  rev. 1.12 sys/netipsec/keysock.c    rev. 1.3  sys/netipsec/keysock.h
  rev. 1.32 sys/netkey/keysock.c      rev. 1.9  sys/netkey/keysock.h

  Fix stack corruptions on amd64.

  Vararg functions have a different calling convention than regular
  functions on amd64. Casting a varag function to a regular one to
  match the function pointer declaration will hide the varargs from
  the caller and we will end up with an incorrectly setup stack.

  Entirely remove the varargs from these functions and change the
  functions to match the declaration of the function pointers.
  Remove the now unnecessary casts.

  Lots of explanations and help from:     peter
  PR:                                     amd64/89261
2006-01-27 21:50:11 +00:00
bz
2c125a1727 MFC rev. 1.115:
Remove unused code.
Found with:	Coverity Prevent(tm)
2006-01-27 21:37:56 +00:00