aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dcons
Commit message (Collapse)AuthorAgeFilesLines
* We don't need to call dcons_poll event handlers if KDB is not active.Hidetoshi Shimokawa2007-08-171-3/+9
| | | | | | | Approved by: re (kensmith) Notes: svn path=/head/; revision=171867
* - Don't force to be the GDB port since dcons(4) is in GENERIC now.Hidetoshi Shimokawa2007-06-111-1/+5
| | | | | | | | | To enable the GDB port of dcons(4), you need to put dcons_gdb=1 in /boot/loader.conf. Notes: svn path=/head/; revision=170537
* Don't invalidate dcons buffer on shutdown.Hidetoshi Shimokawa2007-06-081-0/+2
| | | | | | | We would like to keep connection after halt. Notes: svn path=/head/; revision=170426
* Add the address of IDT in the configuration ROM. (i386/amd64 only)Hidetoshi Shimokawa2007-06-082-0/+27
| | | | | | | | | | | | | | | A change to dconschat(8) will follow so that it can bomb this address over FireWire to reset a wedged system. Though this method is just a hack and far from perfection, it should be useful if you don't want to go machine room just to reset or to power-cycle a machine without remote-managed power supply. And much better than doing: # fwcontrol -m target-eui64 # dd if=/dev/zero of=/dev/fwmem0.2 bs=1m Notes: svn path=/head/; revision=170420
* Replace breakpoint() with kdb_enter().Hidetoshi Shimokawa2007-06-081-2/+2
| | | | Notes: svn path=/head/; revision=170418
* Poll bus resets on FireWire while kdb/gdb is active.Hidetoshi Shimokawa2007-06-083-0/+19
| | | | | | | | | | | | | | | | | | Now, it's safe to call the fwohci interrupt(polling) routine while ddb/gdb is active. After this change, a dcons connnection over FireWire can survive bus resets even in kernel debugger. This means that it is not too late to plug a FireWire cable after a panic to investigate the problem. Actually there is a small window(between a jump to kernel from loader and initialization of dcons_crom) in which no one can take care of a bus reset. Except that window, firewire console should keep working from loader to reboot even with a panic and a bus reset. (as far as you enable LOADER_FIREWIRE_SUPPORT) Notes: svn path=/head/; revision=170408
* We should better ignore a break on gdb port if gdb is not enabled.Hidetoshi Shimokawa2007-05-281-2/+2
| | | | Notes: svn path=/head/; revision=170043
* Change default value of hw.firewire.dcons_crom.force_console to 0Hidetoshi Shimokawa2007-05-271-1/+1
| | | | | | | | | for least astonishment. MFC after: 3 days Notes: svn path=/head/; revision=170018
* Make compile without GDB option.Hidetoshi Shimokawa2007-05-271-4/+11
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=170017
* Include stand.h for loader.Hidetoshi Shimokawa2007-05-251-0/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=169972
* Sweep kernel replacing suser(9) calls with priv(9) calls, assigningRobert Watson2006-11-061-1/+3
| | | | | | | | | | | | | | | | specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net> Notes: svn path=/head/; revision=164033
* Convert to new console interface.Poul-Henning Kamp2006-05-261-9/+7
| | | | Notes: svn path=/head/; revision=158959
* Eliminate gdb_checkc member from GDB_DBGPORT(), it is never used.Poul-Henning Kamp2006-05-261-9/+1
| | | | | | | | Use polling behaviour for gdb_getc() where convenient, this edges us closer to the console code. Notes: svn path=/head/; revision=158950
* Use ttyalloc() instead of ttymalloc()Poul-Henning Kamp2006-01-041-2/+2
| | | | Notes: svn path=/head/; revision=154016
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andRuslan Ermilov2005-12-051-3/+3
| | | | | | | custom kernels. Notes: svn path=/head/; revision=153110
* Make ttyconsolemode() call ttsetwater() so that drivers don't have to.Poul-Henning Kamp2005-10-161-1/+0
| | | | Notes: svn path=/head/; revision=151388
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-065-5/+5
| | | | Notes: svn path=/head/; revision=139749
* Use dcons buffer passed by loader on amd64.Hidetoshi Shimokawa2004-10-281-2/+4
| | | | Notes: svn path=/head/; revision=137013
* - Use quad_t for dcons buffer address and size.Hidetoshi Shimokawa2004-10-241-4/+11
| | | | | | | - Allow read/write access to dcons buffer passed by loader(8). Notes: svn path=/head/; revision=136898
* Check _BOOT flag.Hidetoshi Shimokawa2004-10-221-3/+3
| | | | Notes: svn path=/head/; revision=136781
* Add new function ttyinitmode() which sets our systemwide defaultPoul-Henning Kamp2004-10-181-6/+1
| | | | | | | | | | | | | | | | | modes on a tty structure. Both the ".init" and the current settings are initialized allowing the function to be used both at attach and open time. The function takes an argument to decide if echoing should be enabled. Echoing should not be enabled for regular physical serial ports unless they are consoles, in which case they should be configured by ttyconsolemode() instead. Use the new function throughout. Notes: svn path=/head/; revision=136680
* Fix warnings on non-i386 arch.Hidetoshi Shimokawa2004-10-141-0/+2
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=136498
* - Split dcons core code and OS dependent code.Hidetoshi Shimokawa2004-10-135-650/+883
| | | | | | | | | - Implement dcons_ischar() and dcons_load_buffer(). - If loader passed a dcons buffer address, keep using it. (We still need a patch to cheat memory management system.) Notes: svn path=/head/; revision=136467
* Invalidate dcons buffer on shutdown.Hidetoshi Shimokawa2004-09-261-0/+1
| | | | Notes: svn path=/head/; revision=135799
* Sync with DragonFly BSD.Hidetoshi Shimokawa2004-09-241-17/+93
| | | | Notes: svn path=/head/; revision=135733
* Preparation commit for the tty cleanups that will follow in the nearPoul-Henning Kamp2004-07-151-2/+2
| | | | | | | | | | | | future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming. Notes: svn path=/head/; revision=132226
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPPoul-Henning Kamp2004-07-151-0/+3
| | | | | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". Notes: svn path=/head/; revision=132199
* Re-enable debugger port.Hidetoshi Shimokawa2004-07-131-3/+124
| | | | Notes: svn path=/head/; revision=132092
* Update for the KDB framework:Marcel Moolenaar2004-07-101-49/+4
| | | | | | | | | | | | | | | o Use kdb_alt_break() to handle the alternate break sequence instead of handcoding it here. o Remove GDB kluges to make this driver work with the pre-KDB remote GDB code. o Call kdb_enter() instead of Debugger(). Note that with this commit the dcons(4) driver cannot be used for remote debugging anymore. This driver has to use the new GDB debug port interface instead. Such has not been done yet. Notes: svn path=/head/; revision=131912
* Second half of the dev_t cleanup.Poul-Henning Kamp2004-06-171-1/+1
| | | | | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc. Notes: svn path=/head/; revision=130640
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-6/+6
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Machine generated patch which changes linedisc calls from accessingPoul-Henning Kamp2004-06-041-4/+4
| | | | | | | | | linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit. Notes: svn path=/head/; revision=130077
* Gainfully employ the new ttyioctl in the trivial cases.Poul-Henning Kamp2004-06-011-25/+0
| | | | Notes: svn path=/head/; revision=129944
* There is no need to explicitly call ttwakeup() and ttwwakeup() afterPoul-Henning Kamp2004-06-011-2/+0
| | | | | | | | ttyclose() has been called. It's already been done once by ttyclose, and probably once by the line-discipline too. Notes: svn path=/head/; revision=129937
* ttyclose() increments t_gen. Remove redundant increments in drivers.Poul-Henning Kamp2004-06-011-1/+0
| | | | Notes: svn path=/head/; revision=129934
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-302-0/+2
| | | | Notes: svn path=/head/; revision=129879
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-1/+2
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Device megapatch 3/6:Poul-Henning Kamp2004-02-211-3/+1
| | | | | | | | | | | | | | | Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures. Notes: svn path=/head/; revision=126078
* Device megapatch 1/6:Poul-Henning Kamp2004-02-211-2/+0
| | | | | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number. Notes: svn path=/head/; revision=126076
* - Clean up global data.Hidetoshi Shimokawa2004-02-163-38/+58
| | | | | | | | | - Force dcons to be the high-level console after dcons_crom has been attached. - Add a tunable to be the high-level console. Notes: svn path=/head/; revision=125862
* Move post dmamap_load processes into the callback function.Hidetoshi Shimokawa2003-11-081-19/+20
| | | | Notes: svn path=/head/; revision=122310
* Add dumb console driver and related bits.Hidetoshi Shimokawa2003-10-243-0/+969
dcons(4): very simple console and gdb port driver dcons_crom(4): FireWire attachment dconschat(8): User interface to dcons Tested with: i386, i386-PAE, and sparc64. Notes: svn path=/head/; revision=121468