300088 |
17-May-2016 |
glebius |
- Use unsigned version of min() when handling arguments of SETFKEY ioctl. - Validate that user supplied control message length in sendmsg(2) is not negative.
Security: SA-16:18 Security: CVE-2016-1886 Security: SA-16:19 Security: CVE-2016-1887 Submitted by: C Turt <cturt hardenedbsd.org> Approved by: so |
267654 |
20-Jun-2014 |
gjb |
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
248085 |
09-Mar-2013 |
marius |
MFC: r227309 (partial)
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.
The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
|
235743 |
21-May-2012 |
jhb |
Toss bogus mergeinfo.
|
235738 |
21-May-2012 |
sbruno |
MFC r235634
Fix and update battery status bits according to linux driver
|
225736 |
23-Sep-2011 |
kensmith |
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
Approved by: re (implicit)
|
224126 |
17-Jul-2011 |
ed |
Restore binary compatibility for GIO_KEYMAP and PIO_KEYMAP.
Back in 2009 I changed the ABI of the GIO_KEYMAP and PIO_KEYMAP ioctls to support wide characters. I created a patch to add ABI compatibility for the old calls, but I didn't get any feedback to that.
It seems now people are upgrading from 8 to 9 they experience this issue, so add it anyway.
|
213770 |
13-Oct-2010 |
rpaulo |
Explicitly tell the compiler that we don't care about the return value of kbdd_ioctl().
|
197400 |
22-Sep-2009 |
ed |
Use an unsigned integer for storing the key code.
It seems Clang breaks when checking for SPCLKEY, which is now 0x80000000. Using an unsigned integer fixes this. This is also consistent with other pieces of kbd/syscons code, because these also use u_int.
Submitted by: rdivacky
|
197330 |
19-Sep-2009 |
ed |
Make the keyboard layer Unicode aware.
Just take keyent_t to use an u_int to store the Unicode codepoints. Unfortunately the keymap is now too big to be loaded using an ioctl argument, so change the ioctl to pick a pointer.
This change breaks kbdcontrol ABI. It doesn't break X11, because X11 doesn't do anything with syscons keymaps. It just switches the device out of K_XLATE.
Obtained from: //depot/user/ed/newcons/...
|
193512 |
05-Jun-2009 |
ed |
Move buffer management into kbd and kbdmux drivers.
These two drivers seem to be the last consumers of clists. clists are quite overengineered for simple circular buffers, so I'm adding similar buffer management routines to the kbd and kbdmux drivers. The input buffer is now part of the softc structures, instead of having dynamically allocated cblocks.
|
190870 |
09-Apr-2009 |
emax |
Whitespace nitpicking
MFC after: 1 week
|
190869 |
09-Apr-2009 |
emax |
Introduce KB_POLLED flag to struct keyboard's kb_flags field.
Reviewed by: freebsd-current@, freebsd-hackers@ MFC after: 1 week
|
183397 |
27-Sep-2008 |
ed |
Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere.
This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware.
Reviewed by: kib
|
180777 |
24-Jul-2008 |
ed |
Don't include <sys/tty.h> in non-TTY drivers.
The kbd, kbdmux, ugen and uhid drivers included <sys/tty.h>, because they needed clists, which have been moved to <sys/clist.h> some time ago. In the MPSAFE TTY branch, <sys/tty.h> does not include <sys/clist.h>, which means we have to teach these drivers to include this header file directly.
Approved by: philip (mentor, implicit)
|
174984 |
29-Dec-2007 |
wkoszek |
Remove explicit calls to keyboard methods with their respective variants implemented with macros. This patch improves code readability. Reasoning behind kbdd_* is a "keyboard discipline".
List of macros is supposed to be complete--all methods of keyboard_switch should have their respective macros from now on.
Functionally, this code should be no-op. My intention is to leave current behaviour of code as is.
Glanced at by: rwatson Reviewed by: emax, marcel Approved by: cognet
|
164033 |
06-Nov-2006 |
rwatson |
Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 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>
|
156126 |
28-Feb-2006 |
emax |
Integrate kbdmux(4) into syscons(4) and kbd code.
By default syscons(4) will look for the kbdmux(4) keyboard first, and then, if not found, look for any keyboard.
Current kbd code is modified so if kbdmux(4) is the current keyboard, all new keyboards are automatically added to the kbdmux(4).
Switch to kbdmux(4) can be done at boot time, by loading kbdmux module at the loader prompt, or at runtime, by kldload'ing the kbdmux module and releasing current active keyboard.
If, for whatever reason, kbdmux(4) is not required/desired then just do not load it and everything should work as before. It is also possible to kldunload kbdmux at runtime and syscons(4) will automatically switch to the first available keyboard.
No response from: freebsd-current@ MFC after: 1 day
|
147980 |
13-Jul-2005 |
emax |
kbdmux(4) keyboard multiplexer integration
o Add two new ioctl's KBADDKBD and KBRELKBD. These are used to add and remove keyboard to (and from) kbdmux(4) keyboard multiplexer;
o Introduce new kbd_find_keyboard2() function. It does exactly the same job as kbd_find_keyboard() function except it allows to specify starting index. This function can be used to iterate over keyboards array;
o Re-implement kbd_find_keyboard() as call to kbd_find_keyboard2() with starting index of zero;
o Make sure syscons(4) passed KBADDKBD and KBRELKBD ioctl's onto currently active keyboard.
These changes should not have any visible effect.
MFC after: 1 week
|
147271 |
10-Jun-2005 |
marius |
- Hook up the new locations of the atkbdc(4), atkbd(4) and psm(4) source files after they were repo-copied to sys/dev/atkbdc. The sources of atkbdc(4) and its children were moved to the new location in preparation for adding an EBus front-end to atkbdc(4) for use on sparc64; i.e. in order to not further scatter them over the whole tree which would have been the result of adding atkbdc_ebus.c in e.g. sys/sparc64/ebus. Another reason for the repo-copies was that some of the sources were misfiled, e.g. sys/isa/atkbd_isa.c wasn't ISA-specific at all but for hanging atkbd(4) off of atkbdc(4) and was renamed to atkbd_atkbdc.c accordingly. Most of sys/isa/psm.c, i.e. expect for its PSMC PNP part, also isn't ISA-specific. - Separate the parts of atkbdc_isa.c which aren't actually ISA-specific but are shareable between different atkbdc(4) bus front-ends into atkbdc_subr.c (repo-copied from atkbdc_isa.c). While here use bus_generic_rl_alloc_resource() and bus_generic_rl_release_resource() respectively in atkbdc_isa.c instead of rolling own versions. - Add sparc64 MD bits to atkbdc(4) and atkbd(4) and an EBus front-end for atkbdc(4). PS/2 controllers and input devices are used on a couple of Sun OEM boards and occur on either the EBus or the ISA bus. Depending on the board it's either the only on-board mean to connect a keyboard and mouse or an alternative to either RS232 or USB devices. - Wrap the PSMC PNP part of psm.c in #ifdef DEV_ISA so it can be compiled without isa(4) (e.g. for EBus-only machines). This ISA-specific part isn't separated into its own source file, yet, as it requires more work than was feasible for 6.0 in order to do it in a clean way. Actually philip@ is working on a rewrite of psm(4) so a more comprehensive clean-up and separation of hardware dependent and independent parts is expected to happen after 6.0.
Tested on: i386, sparc64 (AX1105, AXe and AXi boards) Reviewed by: philip
|
146734 |
29-May-2005 |
nyan |
Remove bus_{mem,p}io.h and related code for a micro-optimization on i386 and amd64. The optimization is a trivial on recent machines.
Reviewed by: -arch (imp, marcel, dfr)
|
146138 |
12-May-2005 |
nyan |
Move the pc98 keymap define into pckbdtables.h because it should be used only on the pckbd driver.
|
144768 |
07-Apr-2005 |
sobomax |
Backout previous diffs - this functionality is already provided by the hints to the atkbd(4).
PR: Submitted by: jhb
|
144753 |
07-Apr-2005 |
sobomax |
Make previous commit actually working by replacing TUNABLE_INT() with TUNABLE_INT_FETCH(). Apparently keyboard init is performed earlier in the boot process than fetching all static tunables.
MFC after: 1 day
|
144749 |
07-Apr-2005 |
sobomax |
Provide a new tunable hw.atkbdc.broken_kit_cmd, which if set to 1 instructs the driver to avoid using Keyboard Interface Test command. This command causes problems with some non-compliant hardware, resulting in machine being abruptly powered down early in the boot process.
Particularly it's known that HP ZV5000 and Compaq R3000Z notebooks are affected by this problem.
Due to popularity of those models this patch is good MFC5.4 candidate.
PR: 67745 Submitted by: Jung-uk Kim jkim at niksun.com MFC after: 1 days
|
142569 |
26-Feb-2005 |
sam |
plug memory leak
Noticed by: Coverity Prevent analysis tool
|
139193 |
22-Dec-2004 |
phk |
#include fcntl.h not vnode.h. Check O_NONBLOCK not IO_NDELAY.
|
138900 |
15-Dec-2004 |
jhb |
Add a new flag to the atkbd(4) driver to disable testing the keyboard port during the device probe as this can cause hangs on some machines, specifically Compaq R3000Z series amd64 laptops. The flag is bit 3, or 0x8.
PR: amd64/67745 Reported by: Neil Winterbauer newntrbr at ucla dot edu, many others Tested by: ade, astrodog at gmail dot com, many others MFC after: 1 week
|
130585 |
16-Jun-2004 |
phk |
Do the dreaded s/dev_t/struct cdev */ Bump __FreeBSD_version accordingly.
|
130312 |
10-Jun-2004 |
jhb |
Remove atdevbase and replace it's remaining uses with direct references to KERNBASE instead.
|
127752 |
02-Apr-2004 |
des |
style(9): return foo -> return (foo) also fix a continuation indent I missed in the previous commit.
|
127751 |
02-Apr-2004 |
des |
Clean up whitespace, fix continuation indents, wrap some long lines.
|
126080 |
21-Feb-2004 |
phk |
Device megapatch 4/6:
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.
|
126076 |
21-Feb-2004 |
phk |
Device megapatch 1/6:
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.
|
125087 |
27-Jan-2004 |
des |
While USB keyboards attach as ukbd[0-9]+, the device node created by kbd_attach() is called kbd[0-9]+, with a different unit number. This makes it impossible to write a devd rule which will automatically switch to a USB keyboard when one is attached, because there is no way to guess the correct device node to pass to kbdcontrol.
Therefore, change kbd_attach() to create a device node using the keyboard device's real name (atkbd0, ukbd0...), and create the kbd[0-9]+ node as an alias for backward compatibility.
|
122352 |
09-Nov-2003 |
tanimura |
- Implement selwakeuppri() which allows raising the priority of a thread being waken up. The thread waken up can run at a priority as high as after tsleep().
- Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities.
- Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs.
Not objected in: -arch, -current
|
120875 |
07-Oct-2003 |
fjoe |
Assign keycodes for Power, Sleep and Wake keys.
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
|
120502 |
27-Sep-2003 |
phk |
Fix dev_t handling to avoid needless makedev() call.
|
119418 |
24-Aug-2003 |
obrien |
Use __FBSDID(). Also some minor style cleanups.
|
117513 |
13-Jul-2003 |
simokawa |
Fix for FAIL_IF_NO_KBD case as expected.
Even if we have no AT keyboard, an AT keyboard is registered because it's probed with KB_CONF_PROBE_ONLY flag set during console initialization. Unregister the keyboard if it doesn't present while second probe.
This should fix USB keyboard only case without 'kbdcontrol -k /dev/kbd1'.
|
117478 |
12-Jul-2003 |
mikeh |
Add support for the A4 Tech RFSW-35 mouse wheel. Probe is similar to 4D Plus.
PR: 44333
|
117167 |
02-Jul-2003 |
jhb |
- Use the new resource_disabled() helper function to see if devices are disabled. - Change the apm driver to match the acpi driver's behavior by checking to see if the device is disabled in the identify routine instead of in the probe routine. This way if the device is disabled it is never created.
Note that a few places (ips(4), Alpha SMP) used "disable" instead of "disabled" for their hint names, and these hints must be changed to "disabled". If this is a big problem, resource_disabled() can always be changed to honor both names.
|
114930 |
12-May-2003 |
peter |
AMD64 physical space is much larger than i386, de-i386 the bus_space and bus_dma MD code for AMD64. (And a trivial ifdef update in dev/kbd because of this). More updates are needed here to take advantage of the 64 bit instructions.
Approved by: re (blanket amd64/*)
|
114382 |
01-May-2003 |
peter |
Update the hardcoded bus tags for early console support for amd64.
|
114293 |
30-Apr-2003 |
markm |
Fix some easy, global, lint warnings. In most cases, this means making some local variables static. In a couple of cases, this means removing an unused variable.
|
114216 |
29-Apr-2003 |
kan |
Deprecate machine/limits.h in favor of new sys/limits.h. Change all in-tree consumers to include <sys/limits.h>
Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
|
112050 |
09-Mar-2003 |
dwmalone |
Add a a sysctl, hw.kbd.keymap_restrict_change, which acts a bit like secure level but which restricts changes to the keymap. Its values impose the following restrictions:
0: No restriction - this is the default. 1: Only root can change restricted keys (like boot, panic, ...) 2: Only root can change restricted keys and regular keys. Other users still can change accents and function keys. 3: Only root can change restricted keys, regular keys and accents. 4: Only root can change any of the keymap (restricted keys, regular keys, accents and function keys).
Unfortunately, the keyboard's accent map is cleared when a new keymap is loaded, which makes the distinction between level 3 and level 4 less useful.
The MAC guys might like to make this a policy?
No objections from: -audit about 6 moths ago
|
111815 |
03-Mar-2003 |
phk |
Gigacommit to improve device-driver source compatibility between branches:
Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values.
This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386.
Approved by: re(scottl)
|
111748 |
02-Mar-2003 |
des |
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
|
111119 |
19-Feb-2003 |
imp |
Back out M_* changes, per decision of the TRB.
Approved by: trb
|
110398 |
05-Feb-2003 |
charnier |
Spelling.
|
109623 |
21-Jan-2003 |
alfred |
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
105181 |
15-Oct-2002 |
phk |
Include "opt_kbd.h" since certain structures size depend on the value of KBDIO_DEBUG which may be defined in the kernel config (as it is in NOTES).
This kind of bug is a _really_ horribly thing as we end up with one bit of code thinking a particular structure is 136 bytes and another that it is only 112 bytes.
Ideally all places would remember to #include the right "opt_foo.h" file, but I think in practice file containing the variable sized struct should #include it explicitly as a precaution.
Detected by: FlexeLint
|
102412 |
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
102149 |
19-Aug-2002 |
peter |
de-count atkbdc. I have more extensive patches to make properly dynamic, but since pc hardware only allows one AT-style keyboard controller, this doesn't seem particularly urgent. (I do not know what the old sunriver remote keyboard/mouse/vga cards do, that might be an exception).
|
94275 |
09-Apr-2002 |
phk |
GC various bits and pieces of USERCONFIG from all over the place.
|
94228 |
08-Apr-2002 |
asmodai |
Fix typo: conole -> console
PR: 33965 Submitted by: Nicola Vitale <nivit@libero.it>
|
93279 |
27-Mar-2002 |
murray |
Fix spelling and grammar bogons in a comment.
PR: kern/30540 Submitted by: Tony Finch <dot@dotat.at> MFC after: 3 days
|
92661 |
19-Mar-2002 |
peter |
Add the ia64 bus space tag for the IO ports (!). Add a #else and #error so that this doesn't go unnoticed again.
|
92252 |
14-Mar-2002 |
alfred |
Fixes to make select/poll mpsafe.
Problem: selwakeup required calling pfind which would cause lock order reversals with the allproc_lock and the per-process filedesc lock. Solution: Instead of recording the pid of the select()'ing process into the selinfo structure, actually record a pointer to the thread. To avoid dereferencing a bad address all the selinfo structures that are in use by a thread are kept in a list hung off the thread (protected by sellock). When a selwakeup occurs the selinfo is removed from that threads list, it is also removed on the way out of select or poll where the thread will traverse its list removing all the selinfos from its own list.
Problem: Previously the PROC_LOCK was used to provide the mutual exclusion needed to ensure proper locking, this couldn't work because there was a single condvar used for select and poll and condvars can only be used with a single mutex. Solution: Introduce a global mutex 'sellock' which is used to provide mutual exclusion when recording events to wait on as well as performing notification when an event occurs.
Interesting note: schedlock is required to manipulate the per-thread TDF_SELECT flag, however if given its own field it would not need schedlock, also because TDF_SELECT is only manipulated under sellock one doesn't actually use schedlock for syncronization, only to protect against corruption.
Proc locks are no longer used in select/poll.
Portions contributed by: davidc
|
83492 |
15-Sep-2001 |
yokota |
Refine ACPI/PnP BIOS probe/attach routines a bit.
- Add workaround for the problematic PnP BIOS which does not assign irq resource for the PS/2 mouse device node; if there is no irq assigned for the PS/2 mouse node, refer to device.hints for an irq number. If we still don't find an irq number in the hints database, use a hard-coded value. - Delete unused ivars. - Bit of clean up in probe/attach. - Add PnP ID for the PS/2 mouse port on some IBM ThinkPad models.
|
83366 |
12-Sep-2001 |
julian |
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
|
83147 |
06-Sep-2001 |
yokota |
Update the atkbdc, atkbd, and psm drivers to probe/attach more cleanly and consistently in all APCI, PnP BIOS, and "hint" cases.
NOTE: this doesn't necessarily solve the problem that the PS/2 mouse is not detected after the recent ACPI update.
|
80045 |
20-Jul-2001 |
yokota |
Fix typo; the meaning of the 3rd parameter to genkbd_keyaction() is 'up' rather than 'down'.
PR: 22466 MFC after: 10 days
|
80040 |
20-Jul-2001 |
yokota |
Return consistent key action codes at key press and release events. Otherwise you would see unexpected results if shift or locking keys are defined to give different actions depending on other shift/locking keys' state.
Please keep the ukbd module and the kernel in sync, otherwise the USB keyboard won't work after this change. MFC after: 10 days
|
78161 |
13-Jun-2001 |
peter |
With this commit, I hereby pronounce gensetdefs past its use-by date.
Replace the a.out emulation of 'struct linker_set' with something a little more flexible. <sys/linker_set.h> now provides macros for accessing elements and completely hides the implementation.
The linker_set.h macros have been on the back burner in various forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()), John Polstra (ELF clue) and myself (cleaned up API and the conversion of the rest of the kernel to use it).
The macros declare a strongly typed set. They return elements with the type that you declare the set with, rather than a generic void *.
For ELF, we use the magic ld symbols (__start_<setname> and __stop_<setname>). Thanks to Richard Henderson <rth@redhat.com> for the trick about how to force ld to provide them for kld's.
For a.out, we use the old linker_set struct.
NOTE: the item lists are no longer null terminated. This is why the code impact is high in certain areas.
The runtime linker has a new method to find the linker set boundaries depending on which backend format is in use.
linker sets are still module/kld unfriendly and should never be used for anything that may be modular one day.
Reviewed by: eivind
|
74810 |
26-Mar-2001 |
phk |
Send the remains (such as I have located) of "block major numbers" to the bit-bucket.
|
74123 |
12-Mar-2001 |
ache |
Update default keyboard (PREV, PASTE)
|
71394 |
22-Jan-2001 |
dwmalone |
Free the kbd pointer when it isn't NULL, as opposed to when it is. This was a typo in the M_ZERO patches.
Submitted by: Mike Silbersack <silby@silby.com>
|
69781 |
08-Dec-2000 |
dwmalone |
Convert more malloc+bzero to malloc+M_ZERO.
Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
|
67882 |
29-Oct-2000 |
phk |
Remove unneeded #include <sys/proc.h> lines.
|
67164 |
15-Oct-2000 |
phk |
Remove unneeded #include <machine/clock.h>
|
66834 |
08-Oct-2000 |
phk |
Initiate deorbit burn sequence for <machine/console.h>.
Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources.
Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
|
65759 |
11-Sep-2000 |
dwmalone |
Add the ability to define a "shutdown" and "shutdown and poweroff" key to syscons. I have a man page to follow describing the format of the kbdmap file.
PR: 19273 Reviewed by: sheldonh
|
65176 |
28-Aug-2000 |
dfr |
* Completely rewrite the alpha busspace to hide the implementation from the drivers. * Remove legacy inx/outx support from chipset and replace with macros which call busspace. * Rework pci config accesses to route through the pcib device instead of calling a MD function directly.
With these changes it is possible to cleanly support machines which have more than one independantly numbered PCI busses. As a bonus, the new busspace implementation should be measurably faster than the old one.
|
61004 |
28-May-2000 |
ache |
Manipulate with AltGR Led (really CapsLock Led) only in K_XLATE mode, because all other modes not set ALKED flag and it means that CapsLock always turned off for them. Real bug example is X11 which never turn on CapsLock with Russian keyboard.
PR: 18651 Submitted by: "Mike E. Matsnev" <mike@po.cs.msu.su>
|
60938 |
26-May-2000 |
jake |
Back out the previous change to the queue(3) interface. It was not discussed and should probably not happen.
Requested by: msmith and others
|
60833 |
23-May-2000 |
jake |
Change the way that the queue(3) structures are declared; don't assume that the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk Reviewed by: phk Approved by: mdodd
|
58271 |
19-Mar-2000 |
yokota |
- Properly keep track of I/O port resources. - Use bus_space_read/write() to access the ports.
|
58230 |
18-Mar-2000 |
yokota |
- Add Support for the following PS/2 mice: - Microsoft IntelliMouse Explorer: 2 buttons on top, 2 side buttons and a wheel which also acts as the middle button. The mouse is recognized as "IntelliMouse Explorer". - Genius NetScroll Optical: 2 buttons on top, 2 side buttons and a wheel which also acts as the middle button. The mouse is recognized as "NetMouse/NetScroll Optical". - MouseSystems SmartScroll Mouse (OEM from Genius?): 3 buttons on top, 1 side button and a wheel. The mouse is recognized as Genius "NetScroll". - IBM ScrollPoint: 2 buttons on top and a stick between the buttons. The stick can perform "horizontal scroll" in W*ndows environment. The horizontal movement of the stick is detected. It is currently mapped to the Z axis movement in the same way as the first wheel. The mouse is recognized as "MouseMan+", as it is considered to be a variation of MouseMan. - A4 Tech 4D and 4D+ mice. These mice have two wheels! The movement of the second wheel is reported as the Z axis movement in the same way as the first wheel. These mice are recognized as "4D Mouse" and "4D+ Mouse". - Tweak IntelliMouse support code a bit so that less-than-compatible wheel mice can work properly with the psm driver. - Add driver configuration flags which correspond to the kernel options PSM_HOOKRESUME and PSM_RESETAFTERSUSPEND, so that we don't need to recompile the kernel when we need these functions. - Properly keep track of the irq resource. - Add a watchdog timer in case interrupts are lost (experimental). - Add `detach' function (experimental).
|
58144 |
16-Mar-2000 |
nyan |
Changed key assign for PC-98.
shift+TAB : BackTab HELP : End STOP : ScrollLock shift+STOP : ScreenSaver GRPH +STOP : Suspend(susp) COPY : NextScreen(nscr) ctrl +COPY : Debug NFER : Meta
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
|
57902 |
11-Mar-2000 |
yokota |
One more patch for the atkbd driver. It will make sure that the keyboard port and interrupt is enabled and the driver is attached even when the keyboard itself is not present when the system is booting. (This has been the behavior through out 2.X and 3.X, but is somehow broken in 4.0.)
# I certainly don't recommend people to `hot-plug' the AT keyboard, # because the interface isn't designed for hot-plugging and such act # will often break the keyboard controller. But, so many people want to # do that anyway...
Approved by: jkh
|
57131 |
11-Feb-2000 |
yokota |
- Be slightly more cautious and try to make more sure the keyboard input queue is emptied when initializing the keyboard controller. - Remove an unnecessary `if' statement.
Approved by: jkh
|
56836 |
29-Jan-2000 |
peter |
Use config's conditional compilation rather than using #ifdefs that make modular compilation harder. I'm doing this because people seem to like cut/pasting examples of bad practices in existing code.
|
56334 |
20-Jan-2000 |
yokota |
- Add some comment from bde on the keyboard interrupt. - Fix obsolete comments.
|
55820 |
11-Jan-2000 |
yokota |
Rework shifta/ctla/alta key handling. It appears that there was misunderstanding between the PR originator and me. I hope I got it right this time.
|
55731 |
10-Jan-2000 |
yokota |
Obtain the initial key repeat rate setting via BIOS in i386 if possible.
|
55730 |
10-Jan-2000 |
yokota |
Add some keyboard IDs.
|
55391 |
04-Jan-2000 |
nyan |
- Fixed warnings. - Removed unnecessary include files.
|
55205 |
29-Dec-1999 |
peter |
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
|
54545 |
13-Dec-1999 |
yokota |
- Add a module event function to the ukbd driver and make the ukbd KLD module work. - Delete unnecessary #include.
|
54543 |
13-Dec-1999 |
yokota |
- Remember the keyboard repeat delay and rate. - Add a new ioctl, KDGETREPEAT, to retrieve the keyboard repeat rate. - Delete unnecessary #include.
|
54382 |
10-Dec-1999 |
yokota |
Add support new keys: lshifta, rshifta, lctrla, rctrla, lalta, and ralta. These keys combine shift/ctrl/alt function and the AltLock function. When these keys pressed together with another key, they act just like the ordinary shift/ctrl/alt keys. When these keys are pressed and released alone, Alt lock state is toggled.
PR: kern/12475
|
51658 |
25-Sep-1999 |
phk |
Remove five now unused fields from struct cdevsw. They should never have been there in the first place. A GENERIC kernel shrinks almost 1k.
Add a slightly different safetybelt under nostop for tty drivers.
Add some missing FreeBSD tags
|
50477 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50254 |
23-Aug-1999 |
phk |
Convert DEVFS hooks in (most) drivers to make_dev().
Diskslice/label code not yet handled.
Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers)
Add the correct hook for devfs to kern_conf.c
The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases.
A few drivers had minor additional cleanups performed relating to cdevsw registration.
A few drivers don't register a cdevsw{} anymore, but only use make_dev().
|
50154 |
22-Aug-1999 |
yokota |
- Remove cdevsw entry points in individual keyboard drivers; instead, use generic entry points for all drivers. - Eliminate bogus makedev(). - Eliminate softc in the lower drivers, as it is no longer necessary.
Submitted (95%) by: phk
|
49820 |
15-Aug-1999 |
yokota |
Correctly save `flags' bits.
|
48878 |
18-Jul-1999 |
yokota |
- Move the `return' statement the correct place so that the keyboard won't be initialized if `atkbd?' is disabled.
|
47640 |
31-May-1999 |
phk |
Simplify cdevsw registration.
The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing.
cdevsw_add() will print an message if the d_maj field looks bogus.
Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL.
Move bdevsw() and devsw() functions to kern/kern_conf.c
Bump __FreeBSD_version to 400006
This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions
if_xe.c bogusly accessed cdevsw[], author/maintainer please fix.
I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
|
47625 |
30-May-1999 |
phk |
This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw".
Initialize the d_maj and d_bmaj fields.
The d_reset field was not removed, although it is never used.
I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way.
Vinum and i4b not modified, patches emailed to respective authors.
|
47624 |
30-May-1999 |
phk |
Don't bogusly define a d_reset_t function.
|
47336 |
20-May-1999 |
yokota |
- Include isa/isareg.h rather than i386/isa/isa.h for i386. - Remove unused (thus, commented out) section of code.
|
47335 |
20-May-1999 |
yokota |
Include sys/isa/isareg.h rather than i386/isa/isa.h for i386.
|
47296 |
18-May-1999 |
yokota |
Slight reorganization of internal interface in the keyboard controller driver.
|
47295 |
18-May-1999 |
yokota |
Silence warnings.
|
47294 |
18-May-1999 |
yokota |
Remove unnecessary function call.
|
47293 |
18-May-1999 |
yokota |
The previous commit was wrong! This is the correct one ;-<
|
46765 |
09-May-1999 |
yokota |
Don't confuse cursor keys with numpad keys when composing a char code.
PR: kern/10988
|
46764 |
09-May-1999 |
yokota |
Minor tweak after the introduction of new-bus to i386; properly check "disabled" and "flags" probe hints.
|
45720 |
16-Apr-1999 |
peter |
Bring the 'new-bus' to the i386. This extensively changes the way the i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA.
(Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.)
This is a checkpoint of work-in-progress, but is quite functional.
The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman.
Approved by: core
|
44628 |
10-Mar-1999 |
yokota |
Keyboard driver update in preparation for the USB keyboard driver.
- Refined internal interface in keyboard drivers so that: 1. the side effect of device probe is kept minimal, 2. polling mode function is added, 3. and new ioctl and configuration options are added (see below).
- Added new ioctl: KDSETREPEAT Set keyboard typematic rate. There has existed an ioctl command, KDSETRAD, for the same purpose. However, KDSETRAD is dependent on the AT keyboard. KDSETREPEAT provides more generic interface. KDSETRAD will still be supported in the atkbd driver.
- Added new configuration options: ATKBD_DFLT_KEYMAP Specify a keymap to be used as the default, built-in keymap. (There has been undocumented options, DKKEYMAP, UKKEYMAP, GRKEYMAP, SWKEYMAP, RUKEYMAP, ESKEYMAP, and ISKEYMAP to set the default keymap. These options are now gone for good. The new option is more general.)
KBD_DISABLE_KEYMAP_LOADING Don't allow the user to change the keymap.
|
43337 |
28-Jan-1999 |
yokota |
- Fixed the bug which always ignored Ctrl-Pause/Break on the AT 101 keyboard. - Translate some keycode for the 84 keyboard so that the 84 keyboard and the 101 keyboard become more compatible in terms of keycodes. - Updated the built-in keymaps so that it is in line with the recent changes in share/syscons/keymaps. - Added some comment on the Pause/Break key on the 101 keyboard.
|
43314 |
28-Jan-1999 |
dillon |
Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile
|
42831 |
19-Jan-1999 |
yokota |
syscons - Bring down the splash screen when a vty is opened for the first time. - Make sure the splash screen/screen saver is stopped before switching vtys. - Read and save initial values in the BIOS data area early. VESA BIOS may change BIOS data values when switching modes. - Fix missing '&' operator. - Move ISA specific part of driver initialization to syscons_isa.c.
atkbd - kbdtables.h is now in /sys/dev/kbd.
all - Adjust for forthcoming alpha port. Submitted by: dfr
|
42626 |
13-Jan-1999 |
yokota |
Use the correct macro to test flags; we need KBD_IS_INITIALIZED here, not KBD_IS_PROBED.
|
42573 |
12-Jan-1999 |
yokota |
Fix PIO_KEYMAPENT/GIO_KEYMAPENT. They used to copy from/to a wrong place. The bug found by: Mike Zanker <A.M.Zanker@open.ac.uk>
|
42564 |
12-Jan-1999 |
yokota |
Clean up warnings: get conditional compilation right so that a local function won't be defined unless it is actually used. Requested by: eivind
|
42421 |
09-Jan-1999 |
yokota |
Add the new keyboard driver and video card driver. They will be used by console drivers.
(They are not yet activated yet. Wait for announcement later.)
|
41235 |
18-Nov-1998 |
kato |
Fix ROOL UP/DOWN keys of PC-98.
|
39287 |
15-Sep-1998 |
sos |
Add VESA support to syscons.
Kazu writes:
The VESA support code requires vm86 support. Make sure your kernel configuration file has the following line. options "VM86" If you want to statically link the VESA support code to the kernel, add the following option to the kernel configuration file. options "VESA"
The vidcontrol command now accepts the following video mode names: VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600
The VESA_800x600 mode is a raster display mode. The 80x25 text will be displayed on the 800x600 screen. Useful for some laptop computers.
vidcontrol accepts the new `-i <info>' option, where <info> must be either `adapter' or `mode'. When the `-i adapter' option is given, vidcontrol will print basic information (not much) on the video adapter. When the `-i mode' option is specified, vidcontrol will list video modes which are actually supported by the video adapter.
Submitted by: Kazutaka YOKOTA yokota@FreeBSD.ORG
|
36704 |
06-Jun-1998 |
steve |
keymap -> key_map so that the kernel will compile with -DESKEYMAP.
PR: 6864 Submitted by: Javier Rueda <jmrueda@diatel.upm.es>
|
32849 |
28-Jan-1998 |
yokota |
Define CTL-ALT-ESC as the `debug' key, CTL-ALT-SPACE as the `suspend'key in all built-in keymaps.
|
32487 |
12-Jan-1998 |
yokota |
Fix illegal numeric expressions: 08 and 09.
|
32315 |
07-Jan-1998 |
yokota |
Added accent (dead) key support to syscons and kbdcontrol.
With a keymap with accent key definitions loaded to syscons, you press an accent key followed by a regular letter key to produce an accented letter. Press an accent key followed by the space bar to get the accent letter itself.
Code is based on the ideas and work by jmrueda@diatel.upm.es and totii@est.is.
PR: i386/4016
console.h - Defined structures and constants for accent (dead) keys.
syscons.c, kbdtables.h - When an accent key is pressed, set the corresponding index to `accents'. If the next key is the space key, produce the accent char itself. Otherwise search the accent key map entry, indexed by `accents', for a matching pair of a regular char and an accented char. - Added ioctl functions to set and get the accent key map (PIO_DEADKEYMAP and GIO_DEADKEYMAP).
|
30351 |
12-Oct-1997 |
jkh |
Back out my LALT -> META change until we figure out a way to make it work sympathetically with the function keys.
|
30266 |
10-Oct-1997 |
jkh |
Change default keymap (I left all the international ones alone) so that LALT is META by default. This will make the emacs users happy. Approved by: sos
|
22975 |
22-Feb-1997 |
peter |
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
19269 |
30-Oct-1996 |
asami |
More merge and update.
(1) deleted #if 0
pc98/pc98/mse.c
(2) hold per-unit I/O ports in ed_softc
pc98/pc98/if_ed.c pc98/pc98/if_ed98.h
(3) merge more files by segregating changes into headers.
new file (moved from pc98/pc98):
i386/isa/aic_98.h
deleted:
well, it's already in the commit message so I won't repeat the long list here ;)
Submitted by: The FreeBSD(98) Development Team
|
13632 |
25-Jan-1996 |
ache |
Change RUKEYMAP sligtly
|
12724 |
10-Dec-1995 |
phk |
Staticize and cleanup.
|
7452 |
28-Mar-1995 |
sos |
Change fkey 63 from ^[[K to ^[[~. Submitted by: ache
|
7420 |
27-Mar-1995 |
sos |
Give backspace to the people (again)
Now the keymaps are as follows:
"backspace / <-" ^H "grey del" ^? (0x7f) "numpad , del" ^? (, if numlocked)
|
6868 |
03-Mar-1995 |
ache |
Fix flag bugs with RUKEYMAP
|
6851 |
03-Mar-1995 |
sos |
Minor update to syscons. Let "grey delete" be a function key (default is 0x7f) Fix the xor cursor again.. Made the backspace key generate del as default Made CTRL-space generate nul as default.
|
6044 |
30-Jan-1995 |
sos |
Reviewed by: Submitted by: Obtained from:
|
5994 |
28-Jan-1995 |
sos |
Third round in syscons update.
Display update method changed, now allways write in memory buffer, then periodically update physical display. Speed improvements (now > 5 times faster than the old syscons). History now circular buffer, with changeable size. History scroll by up/down line, up/down page, home and end. Backtab proberly implemented. Now space for 96 function keys, 63 allocated standard, default now SCO/SYSV compat again as in the old days. New keyboard definition files ~share/syscons/keymaps/* Misc fixes for old "hacks" that broke SCO/SYSV compat. More that I forgot before writing this...
|
5935 |
26-Jan-1995 |
ache |
Use NUM_FKEYS instead of hardcoded 65 for fkey_tab size
|
5933 |
26-Jan-1995 |
ache |
Get rid of overloaded Keypad 5, now F(65)
|
5931 |
26-Jan-1995 |
ache |
Rewrite fkey_tab to produce unique sequences for all fkeys Get rid of overloaded fkeys
|
5924 |
26-Jan-1995 |
ache |
Implement Delete key properly, needed by ncurses
|
5308 |
31-Dec-1994 |
ache |
Changes to allow keypad 5 produce \E[E like SCO/ANSI term does
|
4685 |
19-Nov-1994 |
ache |
More intelligent BackTab fix using BTAB special key (unused before)
|
4684 |
19-Nov-1994 |
ache |
Fix all keymaps to bring BackTab to life.
|
4573 |
17-Nov-1994 |
sos |
Added support for the MicroSoft Natural keyboard Add support for ws_xpixel & ws_ypixel in winsize. Submitted by: Natural support suggested by Kaleb Keithley (kaleb@x.org)
|
3258 |
01-Oct-1994 |
dg |
Laptop Advanced Power Management support by HOSOKAWA Tatsumi.
Submitted by: HOSOKAWA Tatsumi
|
3186 |
29-Sep-1994 |
sos |
Changed header slightly.
|
2953 |
21-Sep-1994 |
dg |
From 1.1.5:
>date: 1994/05/27 01:09:16; author: ache; state: Exp; lines: +3 -3 >Russian keymap: Ctrl-Alt-Del with NumLock on fixed
|
1417 |
26-Apr-1994 |
sos |
Updated swedish keymap.
|
1065 |
01-Feb-1994 |
ache |
Russian keymap is broken after last commit (fixed) Nate, please, be more careful next time.
|
1061 |
01-Feb-1994 |
nate |
From: sos@login.dkuug.dk (S|ren Schmidt) Subject: syscons-1.3 Date: Sat, 29 Jan 94 23:33:50 MET
But here is the (hopefully) final syscons-1.3....
....
I've changed sgetc so it works as the pccons parallel (it now uses a scgetc internally).
[ There were a couple changes that Bruce Evans sent me that were applied to this version along with some changes that S'ren didn't incorporate into the final version. There will be only minor changes if anything from this version to his final release. ]
|
1009 |
24-Jan-1994 |
ache |
Add Ctrl-Altr-Esc DBG key to RUKEYMAP (russian keymap)
|
983 |
18-Jan-1994 |
nate |
Changed the default syscons keymap to have <CTL-ALT-ESC> enter the debugger and <CTL-ALT-DEL> call the reboot command.
|
699 |
04-Nov-1993 |
ache |
Russian keymap (RUKEYMAP) changes: New syscons keys added: NEXT, DBG, RBT AltGr Shift removed from right Alt Shift state on -,+ keys exchanged
|
679 |
28-Oct-1993 |
rgrimes |
Put back the $Id$ strings
|
677 |
28-Oct-1993 |
jkh |
This is syscons version 1.1
|
619 |
16-Oct-1993 |
rgrimes |
Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some minor cleanup. Added $Id$ to files that did not have any version info, etc
|
470 |
15-Sep-1993 |
rgrimes |
>From: paul@u.tvt.se (Paul Pries) >Subject: Bad bug in kbdtables.h [FreeBSD]
I found a bug in /sys/i386/isa/kbdtables.h which contain the different keyboard layouts for syscons. This regards all tables exept the Danish and US. When compiling the kernel with any other keymapping than Danish or none at all (US), you get an error that 'key_map' is undefined. This is because there is a typo in the name of the struct containing the tables, keymap intead of key_map.
|
210 |
30-Jul-1993 |
jkh |
Updated syscons to 0.2b - please test this! It won't be in the ALPHA release, but it's still worth testing.
|
192 |
26-Jul-1993 |
jkh |
Added necessary files for syscons (may move font include later, but for now it's easier to leave there since I don't feel like breaking anything).
|