digi.c (111753) | digi.c (111815) |
---|---|
1/*- 2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Slawa Olhovchenkov 4 * John Prince <johnp@knight-trosoft.com> 5 * Eric Hernes 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Slawa Olhovchenkov 4 * John Prince <johnp@knight-trosoft.com> 5 * Eric Hernes 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/digi/digi.c 111753 2003-03-02 18:51:46Z phk $ | 29 * $FreeBSD: head/sys/dev/digi/digi.c 111815 2003-03-03 12:15:54Z phk $ |
30 */ 31 32/*- 33 * TODO: 34 * Figure out what the con bios stuff is supposed to do 35 * Test with *LOTS* more cards - I only have a PCI8r and an ISA Xem. 36 */ 37 --- 100 unchanged lines hidden (view full) --- 138 0x02, 0x08, 0x10, 0x20, 0x40, 0x80 139}; 140 141const struct digi_control_signals digi_normal_signals = { 142 0x02, 0x80, 0x20, 0x10, 0x40, 0x01 143}; 144 145static struct cdevsw digi_sw = { | 30 */ 31 32/*- 33 * TODO: 34 * Figure out what the con bios stuff is supposed to do 35 * Test with *LOTS* more cards - I only have a PCI8r and an ISA Xem. 36 */ 37 --- 100 unchanged lines hidden (view full) --- 138 0x02, 0x08, 0x10, 0x20, 0x40, 0x80 139}; 140 141const struct digi_control_signals digi_normal_signals = { 142 0x02, 0x80, 0x20, 0x10, 0x40, 0x01 143}; 144 145static struct cdevsw digi_sw = { |
146 /* open */ digiopen, 147 /* close */ digiclose, 148 /* read */ digiread, 149 /* write */ digiwrite, 150 /* ioctl */ digiioctl, 151 /* poll */ ttypoll, 152 /* mmap */ nommap, 153 /* strategy */ nostrategy, 154 /* name */ driver_name, 155 /* maj */ CDEV_MAJOR, 156 /* dump */ nodump, 157 /* psize */ nopsize, 158 /* flags */ D_TTY | D_KQFILTER, 159 /* kqfilter */ ttykqfilter | 146 .d_open = digiopen, 147 .d_close = digiclose, 148 .d_read = digiread, 149 .d_write = digiwrite, 150 .d_ioctl = digiioctl, 151 .d_poll = ttypoll, 152 .d_name = driver_name, 153 .d_maj = CDEV_MAJOR, 154 .d_flags = D_TTY | D_KQFILTER, 155 .d_kqfilter = ttykqfilter |
160}; 161 162static void 163digi_poll(void *ptr) 164{ 165 struct digi_softc *sc; 166 167 sc = (struct digi_softc *)ptr; --- 1796 unchanged lines hidden --- | 156}; 157 158static void 159digi_poll(void *ptr) 160{ 161 struct digi_softc *sc; 162 163 sc = (struct digi_softc *)ptr; --- 1796 unchanged lines hidden --- |