Commit Graph

174550 Commits

Author SHA1 Message Date
macallan 15354f6295 use PCI_VIA_TTYE0 hack on sparc64 and powerpc 2008-10-25 03:47:00 +00:00
dyoung 6663e85ac5 Reserve an ioctl, SIOCINITIFADDR, for repairing SIOCSIFADDR abuse
in the kernel, later.
2008-10-24 22:32:53 +00:00
dyoung 227b16e28c Constify m_length(). Reserve a packet tag for use later. 2008-10-24 22:31:40 +00:00
dyoung 420368fa25 Use sockaddr_in_init(). Wrap lines. No functional change intended. 2008-10-24 22:30:32 +00:00
dyoung 37dcd495a0 Change 'return (expr);' to 'return expr;'. Change (type *)0 to
NULL.  No functional change intended.
2008-10-24 22:23:20 +00:00
dyoung 2be1ba83a2 Use aprint_error_dev() instead of printf(). 2008-10-24 22:16:26 +00:00
jym 37061b265d - add mfn_to_pfn() and pfn_to_mfn() macros, for rapid conversion between
pseudo-physical and machine frame numbers.

- add HYPERVISOR_crash() for i386 and amd64. Intended to be used by a domain
to notify Xen that it crashed on purpose, and request a dump (if applicable).

No functional changes intended.

Reviewed by Christoph (cegger@).
2008-10-24 22:06:06 +00:00
dyoung d29cd77c53 Use NULL instead of 0 or (type *)0. No functional change intended. 2008-10-24 21:50:08 +00:00
dyoung 398adeb7b9 Do not gratuitously cast to void *. 2008-10-24 21:46:09 +00:00
dyoung beeacc82f5 Fix the device_t/softc split: introduce etherip_softc.sc_dev and
initialize it.  Use sc_dev in etherip_clone_destroy() instead of
casting the softc to struct device *.

Remove gratuitous casts.  Use device_t and cfdata_t throughout.
2008-10-24 21:41:04 +00:00
dyoung d94f902d6b Do not gratuitously cast to void *. Remove excess parenthesization.
Do not "test truth" of pointers, but compare with NULL.

No functional change intended.
2008-10-24 21:38:18 +00:00
dyoung 74264e2e40 bzero -> memset. Avoid some messy casts to sockaddr by using a
union of sockaddr_in6 and sockaddr.  No functional change intended.
2008-10-24 21:30:34 +00:00
jym 4f26afe701 - rename init_events() to events_init(), to better reflect netbsd semantics
- change unbind_[pv]irq_from_evtch() so that they now return the event
channel the [PV]IRQ was bound to. It reflects the opposite behaviour of the
bind_[pv]irq_to_evtch() functions.

- remove xenbus_suspend() and xenbus_resume() prototypes, as they are not
used anywhere else, and will conflict with the xenbus pmf(9) handlers.

- make start_info aligned on a page boundary, as Xen expects it to be so.

- mask event channel during xbd detach before removing its handler (can
avoid spurious events).

- add the "protocol" entry in xenstore during xbd initialization. Normally
created during domU's boot by xentools, it is under domU's responsibility
in all other cases (save/restore, hot plugging, etc.).

- modifications to xs_init(), so that it can properly return an error.

Reviewed by Christoph (cegger@).
2008-10-24 21:09:24 +00:00
macallan 15485d84a5 oops, forgot the mga driver 2008-10-24 20:43:13 +00:00
macallan f580ef87f1 add xorg stuff 2008-10-24 20:38:51 +00:00
macallan 22a73407c6 move DRI drivers into arch-specific xserver lists
OKed by cube
2008-10-24 20:37:35 +00:00
macallan 295bc97134 comment out some more cargo-culted special sparc treatment we can do without 2008-10-24 19:50:39 +00:00
cube 49c1c42f7c Add required LIBDPLIBS. Reported by jmcneill@. 2008-10-24 19:49:54 +00:00
macallan 1dc50364e0 sparc(64) and SBus support 2008-10-24 19:49:30 +00:00
macallan 1bd2d6984d build pcitweak and scanpci on sparc(64) as well 2008-10-24 19:48:34 +00:00
macallan 43628943a4 get rid of some cargo-culted special treatment for sparc64 2008-10-24 19:47:24 +00:00
macallan 65cedee289 sparc(64) support 2008-10-24 19:45:54 +00:00
macallan e42f6fbd2b add sparc(64)-specific drivers list 2008-10-24 19:43:57 +00:00
wrstuden 0a30ab777e toall signals really are toall. The fact we're sa doesn't matter.
They are start/stop signals, and need to impact more than just
blessed lwps.
2008-10-24 18:07:36 +00:00
jym 507459d7a0 - printf -> aprint_*
- fix and add comments
- make some panic/error messages more relevant
- remove last '\n' in DPRINTK() macros, not required as it is already part of format string.

No functional changes.
2008-10-24 18:02:58 +00:00
matt 965dfc78c2 Add irq source names. 2008-10-24 17:46:59 +00:00
matt 71f77216fa Forgot to do the aprint_normal(); 2008-10-24 17:31:24 +00:00
cegger cac6895435 - ansify function definition
- de- __P
- u_int32_t -> uint32_t

No functional changes.
2008-10-24 17:17:12 +00:00
dyoung 71367efb93 Undo a change in my last commit that was not suppsoed to be committed. 2008-10-24 17:14:29 +00:00
dyoung cf969cfa5a Constify the rt_addrinfo argument to the ifa_rtrequest member
function of struct ifaddr.
2008-10-24 17:07:33 +00:00
dyoung ee1bfcb3e8 bzero -> memset. Do not "test truth" of pointers, but compare with
NULL, instead.  Do not gratuitously cast to void *.  Use NULL
instead of (type *)0.

No functional changes intended.
2008-10-24 16:54:18 +00:00
matt cbc61e5fc2 Add ehci/usb support. 2008-10-24 16:49:02 +00:00
matt 2a71ce51c5 Add EHCI attachment for GEMINI port. 2008-10-24 16:48:29 +00:00
cegger 5cbbf5c20d findroot(): set booted_device also when specifying a network device to bootdev.
Useful for booting with root on nfs.
2008-10-24 16:37:25 +00:00
cegger 7f01a821b9 struct device * -> device_t 2008-10-24 16:26:07 +00:00
cliff d6043b6f56 fix comment regarding IO extent. 2008-10-24 16:18:34 +00:00
matt 0cc8aca036 Make this reflect reality. 2008-10-24 16:17:08 +00:00
wiz 4e1bb8f91c Fix pasto in previous. 2008-10-24 15:40:21 +00:00
christos 777e210a29 PR/39796: Robert Elz: Document that sigpending can return EFAULT since it calls
copyout.
2008-10-24 15:14:48 +00:00
christos bc44c7d780 don't hold locks in ddb (call ksyms_getval_unlocked()), pointed out by ad. 2008-10-24 13:55:42 +00:00
matt 8e41274d19 Add entry for FA526. 2008-10-24 13:23:45 +00:00
martin 58175029a4 Avoid code duplication: make cpu_lwp_fork() use cpu_setfunc(). Leave
the inlinig to the compiler. Suggested by Nick Hudson.
2008-10-24 07:54:41 +00:00
matt ebde8b5e81 Make this generate less errors when compiling. :) 2008-10-24 05:39:00 +00:00
matt f759cc96ec Add support for 16550 chips without an Enhanced Register Set. 2008-10-24 04:43:08 +00:00
matt f5d7ce3d2f Add support for Cortina Systems SL3516 eval board. 2008-10-24 04:23:18 +00:00
matt bca83f03da Add pci_conf_hook entry. Add pc_cfg_cmd cell for pci_conf_write optimization. 2008-10-24 04:08:48 +00:00
matt 5e827473c5 fix typo (thx nick) 2008-10-23 21:38:39 +00:00
bouyer 3e37931111 Change mfi_mgmt() to take a mfi_ccb and scsipi_xfer as argument, as
mfi_scsi_io does. Do not tsleep in mfi_mgmt waiting for completion;
let the caller handle it. If mfi_mgmt() is called with a non-NULL scsipi_xfer
have mfi_mgmt_done() wake it up, else wake up the mfi_ccb.
mfi_poll()/mfi_post() is up to the caller.

mfi_scsipi_request(): handle SCSI_SYNCHRONIZE_CACHE_10 as we do for other
commmands: have mfi_mgmt() fill in the ccb, queue of poll the ccb and
return.

Introduce mfi_mgmt_internal() which behaves like mfi_mgmt() did (tsleep
waiting for completion). Use it for internal and ioctl management
requests.

Fix kern/39297 from Greg Oster (mfi calls tsleep() from mfi_intr()),
tested by Mark Davies.
2008-10-23 21:00:06 +00:00
christos ff0507541f don't expose ksyms_lock 2008-10-23 20:41:13 +00:00
apb 9577284633 Don't try to remove trailing newlines from shell variables via
constructs like ${var%$nl}.  Apparently this allows the Ubuntu Linux
/bin/sh (dash) to be used as a host shell during the build.
Patch from PR 39786 by Andy Shevchenko.
2008-10-23 20:21:57 +00:00