Commit Graph

77756 Commits

Author SHA1 Message Date
christos 86497ecc9f It is now ``later''. Follow cgd's 1993 wish and move struct osockaddr
and struct omsghdr to a compat header.
2005-09-24 15:52:03 +00:00
christos ca3a193432 factor out some of the osockaddr, omsghdr code. 2005-09-24 15:51:03 +00:00
chs 33359b3121 need to include sys/socket.h here now, sys/mount.h no longer does it for us. 2005-09-24 15:42:58 +00:00
itohy dbe98ec46f Tweak to make sure the enum size is not affected
by -fshort-enums option.
2005-09-24 12:03:31 +00:00
itohy a2389cbd3b The ukyopon device doesn't notify the DCD (Data Carrier Detect) status.
Since the status is now used by ucom(4) driver for Carrier Detect,
and the CLOCAL flag has been required.

By this change, we assume DCD is always on.  The CLOCAL flag is not
required now.
2005-09-24 12:00:18 +00:00
itohy 33dbd0db13 Use ukyopon port type (UKYOPON_PORT_*) for "portno" locator of ucom(4) driver,
so that user can fix the ucom unit number by config file.

ex.	ucom0	at ukyopon? portno 1	# modem port
	ucom1	at ukyopon? portno 2	# data transfer port

The description of the locator was added to the manual page by someone,
but it has been useless until now. :)
2005-09-24 11:50:25 +00:00
peter 0d776139dc Add casts to make this compile when KLOADER_DEBUG is defined. 2005-09-24 11:27:04 +00:00
peter 84ba0cabfa Fix two typos. 2005-09-24 11:20:07 +00:00
uwe 811a624920 ANSI. KNF. 2005-09-24 01:07:25 +00:00
uwe 7d140fd026 No argument names in function declarations. 2005-09-24 00:51:21 +00:00
uwe d15ed57aa1 G/c unused fields in mspcic_softc. 2005-09-24 00:49:23 +00:00
uwe 5f93873eda Shuffle the code to be more readable. Simplify. 2005-09-24 00:35:08 +00:00
uwe 7ef52537c9 Whitespace nits. 2005-09-24 00:12:20 +00:00
uwe 6ac484d14b Whitespace nit. 2005-09-23 23:29:29 +00:00
uwe b05347bffe Introduce mspcic_{read,write}_N instead of using struct syntax. This
is the first step to make PCIC run without byteswapping - which is
necessary for X server support.  Current macros are still just a
kludgy shim over struct syntax, but accesses to PCIC in the .c files
are now marked up properly.
2005-09-23 23:22:57 +00:00
jmmv e230b755b3 Synchronize NFS status with reality. After yamt@ changes (I think with the
implementation of getpages and putpages and the use of UBC in the read and
write operations), the worst problem has gone away which was a panic when
a file's contents were modified in the original file system and then read
through the NFS mount point.

Also remove the entry about optimization.  While tmpfs still has room for
improvement, it has become a lot better lately, thanks to the string pools
and the changes yamt@ did in the anonymous objects handling.
2005-09-23 21:39:29 +00:00
christos a9a78a7c79 change bcopy to memmove since this was supposed to be an ovbcopy (from kre) 2005-09-23 21:21:58 +00:00
wiz c31c860ef5 Fix typo, add missing parenthesis. 2005-09-23 20:46:18 +00:00
jmmv 50cbbb8bf4 Remove the mount<->netexport entry from the map during umount... otherwise
we leave a dangling pointer in the list *ouch*.
2005-09-23 19:39:15 +00:00
macallan 53ea55fd08 Added macros for bus_space_mmap() and bus_space_vaddr() 2005-09-23 18:53:16 +00:00
macallan aaddad0a64 forgot to commit this along with ofb.c 2005-09-23 17:51:37 +00:00
jmmv b0085cab71 Kill the tmpfs(9) manual page; it was just documenting internal details of
tmpfs' "API" and was already rotting.

Instead, merge all the relevant comments into the code.  This includes
acknowledgements to Google's Summer of Code 2005 program (they were in the
AUTHORS section of tmpfs(9) before), so all the files need to be changed
to include this sentence alongside the title.  (Note that this was not a
requirement of the program.)
2005-09-23 15:36:15 +00:00
jmmv f63b58d19d Lock the source directory during the rename operation so that we are safe
to modify it (I hope this is the correct way to go).  Avoids triggering an
assertion in the tmpfs_dir_detach function, shown by the t_rename
regression test.
2005-09-23 14:27:55 +00:00
itohy c74744e70f Remove duplicated "portno %d" from the attach message. 2005-09-23 14:15:30 +00:00
jmmv 8d09f0278b Start inode numbers on 2 to mimic UFS tradition (and to avoid problems if
some utility relies on this).
2005-09-23 13:59:16 +00:00
jmmv 2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
nathanw 5cdc4355d7 umass_scsipi_sense_cb(): don't set XS_STS_DONE in xs->xs_status;
scsipi_done() will do that.
2005-09-22 22:39:37 +00:00
dyoung ca9595c087 Suppress false 'WARNING: LAST RESET DUE TO WATCHDOG EXPIRATION!'
indications by clearing the WDOVF status flag for real.  The way
to do that is by writing 1, not 0.
2005-09-22 19:34:58 +00:00
dyoung 9a5e721b1e Cosmetic: s/writing writing/writing/ in comments. 2005-09-22 18:57:39 +00:00
macallan 178f17c813 - center output to match firmware settings when using the ROM font
- allow the super user to mmap() the PCI IO area corresponding to ofb at offset
  0xf2000000 - needed by some XFree drivers ( approved by Bill Studenmund )
- add a hack to allow mmap()ing offset 0xa0000 - 0xbffff if not covered by the
  regular framebuffer mapping at offset 0 ( disabled by default, use options
  OFB_FAKE_VGA_FB ) - this allows buggy XFree drivers which expect the VGA
  framebuffer at this address to work.
2005-09-22 18:16:56 +00:00
gdt a73a22a4b2 Make arg of IFQ_SET_READY be &ifp->if_snd, to match all other drivers
and be compilable with altq enabled.  Reviewed by dyoung@
2005-09-22 16:15:20 +00:00
chs 6a0a597fbf pull in changes from i386 profile.h:
- allow profiling of MP kernels, add a spinlock around the body of mcount().
   fixes PR 31360.
 - save and restore eflags instead of just doing cli/sti.
2005-09-22 15:47:03 +00:00
rpaulo 3c4f143c6e Fix bogus if-clause introduced in previous revision. 2005-09-22 14:04:29 +00:00
rpaulo a12bed5a16 In ffs_unmount(), detect EOPNOTSUPP errno returned from
ufs_extattr_stop().

From FreeBSD.
2005-09-22 13:50:55 +00:00
rpaulo 1b8fb7a81f In ufs_extattr_stop(), if we haven't started yet, errno must be set
before bailing out.

From FreeBSD.
2005-09-22 13:49:03 +00:00
simonb 279a125665 TAB police. 2005-09-22 07:13:27 +00:00
dyoung 65eb42952c Add a driver for the watchdog timer on the AMD Geode SC1100. 2005-09-22 07:09:35 +00:00
dyoung 36f0c93a20 Reset the AMD Geode SC1100. Previously, the Geode hung after
printing "resetting...".  Now it really restarts.

Code from FreeBSD.  Description of what the code does by me.
2005-09-22 06:45:03 +00:00
cube 4f5ce13e05 Third version of the DiskOnKey chip needs the same trick as the two others.
Combined with Nathan's previous commit, this allows the DiskOnKey 3 to
work on NetBSD!  Thanks to Marc Baudoin for lending the device.
2005-09-21 21:19:27 +00:00
nathanw 9787fefd1c usbd_setup_pipe(): Don't call usbd_clear_endpoint_stall(). It's not
necessary for normal devices, and it prevents some common (but
apparantly buggy) devices from working, including the Apple iPod (mini
and photo) and certain M-Systems DiskOnKey flash devices.

If (also buggy) devices resurface that need this when they are
attached, they can be addressed, ideally in each device's driver.
2005-09-21 20:17:22 +00:00
macallan cc58522caf - avoid using global variables unless necessary, this should fix weird
problems when more than one mach64 is present
- check memory BARs in mach64_mmap() and adjust allowed ranges in case
something ( XFree86 for instance ) changed them
- disable 'standard' framebuffer mapping at offset 0 on sparc64 because some
Sun/ATI firmware likes to map PCI resources there. May be necessary on other
64bit architectures as well.
2005-09-21 18:49:16 +00:00
christos 51f092ffb7 PR/31364: Douglas Fraser: cmd680 IDE controller not configured properly. 2005-09-21 14:32:46 +00:00
yamt bddc9e47fe add a file which i forgot when reviving VMSWAP option. 2005-09-21 10:21:46 +00:00
bouyer 8519a64973 inline 2 trivial functions that are called often (according to profiling
data).
2005-09-20 20:33:53 +00:00
bouyer 0b1f7e4a8c When disconnecting a device, we have to wait for pending I/O before releasing
the ressources (this can lead to a dom0 kernel crash when destroying a domain
with active I/O going). For this, add a refcount to struct xbdback_instance,
and defer CMSG_BLKIF_BE_DISCONNECT reply until refcount is back to 0 (which
means all queued buffers have completed).
Based on patch sent by Jed Davis on port-xen.
2005-09-20 20:29:18 +00:00
christos 8de29063ea - Bump default data size from 128M to 256M, allows the java interpreter to
start up without unlimit.
- Bump max data size from 2G to 3G. The actual space we are allowed to allocate
  is somewhere between 2G and 3G, so trying to allocate above that will fail.
- Bump max stack size from 32M to 64M.

Approved by fvdl
2005-09-20 16:38:58 +00:00
yamt a0093a4cf5 uninline vn_start_write and vn_finished_write as they are big enough. 2005-09-20 09:49:01 +00:00
thorpej 5d49661ebb Turn bounce buffer stats into evcnts and enable them by default. 2005-09-20 04:48:10 +00:00
martin 26e557a8c6 Extend the gallant font to full ISO8859-1. Content provided by der Mouse,
formatting and any errors by me.
2005-09-19 19:27:31 +00:00
dyoung a58bd46ec2 People have to read this code, so I am removing the double-negative
tautology, #ifndef notdef, which is not only superfluous, but easily
misread as #ifdef notyet.
2005-09-19 05:28:46 +00:00