spic.c (111748) | spic.c (111815) |
---|---|
1/* 2 * Copyright (c) 2000 Nick Sayer 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 33 unchanged lines hidden (view full) --- 42 * l = left, r = right -- that's the dial. 43 * "left" and "right" are rather caprecious. They actually represent 44 * ccw and cw, respectively 45 * 46 * What documentation exists is thanks to Andrew Tridge, and his page at 47 * http://samba.org/picturebook/ Special thanks also to Ian Dowse, who 48 * also provided sample code upon which this driver was based. 49 * | 1/* 2 * Copyright (c) 2000 Nick Sayer 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 33 unchanged lines hidden (view full) --- 42 * l = left, r = right -- that's the dial. 43 * "left" and "right" are rather caprecious. They actually represent 44 * ccw and cw, respectively 45 * 46 * What documentation exists is thanks to Andrew Tridge, and his page at 47 * http://samba.org/picturebook/ Special thanks also to Ian Dowse, who 48 * also provided sample code upon which this driver was based. 49 * |
50 * $FreeBSD: head/sys/i386/isa/spic.c 111748 2003-03-02 16:54:40Z des $ | 50 * $FreeBSD: head/sys/i386/isa/spic.c 111815 2003-03-03 12:15:54Z phk $ |
51 */ 52 53#include <sys/param.h> 54#include <sys/systm.h> 55#include <sys/kernel.h> 56#include <sys/bus.h> 57#include <machine/bus.h> 58#include <sys/rman.h> --- 20 unchanged lines hidden (view full) --- 79 80static d_open_t spicopen; 81static d_close_t spicclose; 82static d_read_t spicread; 83static d_ioctl_t spicioctl; 84static d_poll_t spicpoll; 85 86static struct cdevsw spic_cdevsw = { | 51 */ 52 53#include <sys/param.h> 54#include <sys/systm.h> 55#include <sys/kernel.h> 56#include <sys/bus.h> 57#include <machine/bus.h> 58#include <sys/rman.h> --- 20 unchanged lines hidden (view full) --- 79 80static d_open_t spicopen; 81static d_close_t spicclose; 82static d_read_t spicread; 83static d_ioctl_t spicioctl; 84static d_poll_t spicpoll; 85 86static struct cdevsw spic_cdevsw = { |
87 /* open */ spicopen, 88 /* close */ spicclose, 89 /* read */ spicread, 90 /* write */ nowrite, 91 /* ioctl */ spicioctl, 92 /* poll */ spicpoll, 93 /* mmap */ nommap, 94 /* strategy */ nostrategy, 95 /* name */ "spic", 96 /* maj */ CDEV_MAJOR, 97 /* dump */ nodump, 98 /* psize */ nopsize, 99 /* flags */ 0, | 87 .d_open = spicopen, 88 .d_close = spicclose, 89 .d_read = spicread, 90 .d_ioctl = spicioctl, 91 .d_poll = spicpoll, 92 .d_name = "spic", 93 .d_maj = CDEV_MAJOR, |
100}; 101 102#define SCBUFLEN 128 103 104struct spic_softc { 105 u_short sc_port_addr; 106 u_char sc_intr; 107 struct resource *sc_port_res,*sc_intr_res; --- 450 unchanged lines hidden --- | 94}; 95 96#define SCBUFLEN 128 97 98struct spic_softc { 99 u_short sc_port_addr; 100 u_char sc_intr; 101 struct resource *sc_port_res,*sc_intr_res; --- 450 unchanged lines hidden --- |