Deleted Added
full compact
digi.c (120461) digi.c (126076)
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 120461 2003-09-26 09:05:57Z phk $
29 * $FreeBSD: head/sys/dev/digi/digi.c 126076 2004-02-21 19:42:58Z 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

--- 15 unchanged lines hidden (view full) ---

53#include <machine/resource.h>
54
55#include <sys/digiio.h>
56#include <dev/digi/digireg.h>
57#include <dev/digi/digi.h>
58#include <dev/digi/digi_mod.h>
59#include <dev/digi/digi_pci.h>
60
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

--- 15 unchanged lines hidden (view full) ---

53#include <machine/resource.h>
54
55#include <sys/digiio.h>
56#include <dev/digi/digireg.h>
57#include <dev/digi/digi.h>
58#include <dev/digi/digi_mod.h>
59#include <dev/digi/digi_pci.h>
60
61#define CDEV_MAJOR 162
62
63#define CTRL_DEV 0x800000
64#define CALLOUT_MASK 0x400000
65#define CONTROL_INIT_STATE 0x100000
66#define CONTROL_LOCK_STATE 0x200000
67#define CONTROL_MASK (CTRL_DEV|CONTROL_INIT_STATE|CONTROL_LOCK_STATE)
68#define UNIT_MASK 0x030000
69#define PORT_MASK 0x0000FF

--- 75 unchanged lines hidden (view full) ---

145static struct cdevsw digi_sw = {
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,
61
62#define CTRL_DEV 0x800000
63#define CALLOUT_MASK 0x400000
64#define CONTROL_INIT_STATE 0x100000
65#define CONTROL_LOCK_STATE 0x200000
66#define CONTROL_MASK (CTRL_DEV|CONTROL_INIT_STATE|CONTROL_LOCK_STATE)
67#define UNIT_MASK 0x030000
68#define PORT_MASK 0x0000FF

--- 75 unchanged lines hidden (view full) ---

144static struct cdevsw digi_sw = {
145 .d_open = digiopen,
146 .d_close = digiclose,
147 .d_read = digiread,
148 .d_write = digiwrite,
149 .d_ioctl = digiioctl,
150 .d_poll = ttypoll,
151 .d_name = driver_name,
153 .d_maj = CDEV_MAJOR,
154 .d_flags = D_TTY,
155 .d_kqfilter = ttykqfilter
156};
157
158static void
159digi_poll(void *ptr)
160{
161 struct digi_softc *sc;

--- 1797 unchanged lines hidden ---
152 .d_flags = D_TTY,
153 .d_kqfilter = ttykqfilter
154};
155
156static void
157digi_poll(void *ptr)
158{
159 struct digi_softc *sc;

--- 1797 unchanged lines hidden ---