kbdmux.c (156086) | kbdmux.c (156167) |
---|---|
1/* 2 * kbdmux.c 3 */ 4 5/*- 6 * Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: kbdmux.c,v 1.4 2005/07/14 17:38:35 max Exp $ | 1/* 2 * kbdmux.c 3 */ 4 5/*- 6 * Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: kbdmux.c,v 1.4 2005/07/14 17:38:35 max Exp $ |
31 * $FreeBSD: head/sys/dev/kbdmux/kbdmux.c 156086 2006-02-27 21:47:38Z emax $ | 31 * $FreeBSD: head/sys/dev/kbdmux/kbdmux.c 156167 2006-03-01 18:34:48Z emax $ |
32 */ 33 34#include "opt_kbd.h" 35 36#include <sys/param.h> | 32 */ 33 34#include "opt_kbd.h" 35 36#include <sys/param.h> |
37#include <sys/bus.h> |
|
37#include <sys/conf.h> 38#include <sys/consio.h> 39#include <sys/fcntl.h> 40#include <sys/kbio.h> 41#include <sys/kernel.h> 42#include <sys/limits.h> 43#include <sys/lock.h> 44#include <sys/malloc.h> --- 318 unchanged lines hidden (view full) --- 363} 364 365/* 366 * Detect a keyboard 367 */ 368static int 369kbdmux_probe(int unit, void *arg, int flags) 370{ | 38#include <sys/conf.h> 39#include <sys/consio.h> 40#include <sys/fcntl.h> 41#include <sys/kbio.h> 42#include <sys/kernel.h> 43#include <sys/limits.h> 44#include <sys/lock.h> 45#include <sys/malloc.h> --- 318 unchanged lines hidden (view full) --- 364} 365 366/* 367 * Detect a keyboard 368 */ 369static int 370kbdmux_probe(int unit, void *arg, int flags) 371{ |
372 if (resource_disabled(KEYBOARD_NAME, unit)) 373 return (ENXIO); 374 |
|
371 return (0); 372} 373 374/* 375 * Reset and initialize the keyboard (stolen from atkbd.c) 376 */ 377static int 378kbdmux_init(int unit, keyboard_t **kbdp, void *arg, int flags) --- 956 unchanged lines hidden --- | 375 return (0); 376} 377 378/* 379 * Reset and initialize the keyboard (stolen from atkbd.c) 380 */ 381static int 382kbdmux_init(int unit, keyboard_t **kbdp, void *arg, int flags) --- 956 unchanged lines hidden --- |