atkbd_atkbdc.c (520b635320fe3ec5007d7774fd7b1a8abc432aca) atkbd_atkbdc.c (ef544f631226436ef590825881e7a28369df82f6)
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
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

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

131 if (error)
132 return error;
133
134 /* declare our interrupt handler */
135 sc->intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
136 RF_SHAREABLE | RF_ACTIVE);
137 if (sc->intr == NULL)
138 return ENXIO;
1/*-
2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
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

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

131 if (error)
132 return error;
133
134 /* declare our interrupt handler */
135 sc->intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
136 RF_SHAREABLE | RF_ACTIVE);
137 if (sc->intr == NULL)
138 return ENXIO;
139 error = bus_setup_intr(dev, sc->intr, INTR_TYPE_TTY, atkbdintr,
139 error = bus_setup_intr(dev, sc->intr, INTR_TYPE_TTY, NULL, atkbdintr,
140 kbd, &sc->ih);
141 if (error)
142 bus_release_resource(dev, SYS_RES_IRQ, rid, sc->intr);
143
144 return error;
145}
146
147static int

--- 30 unchanged lines hidden ---
140 kbd, &sc->ih);
141 if (error)
142 bus_release_resource(dev, SYS_RES_IRQ, rid, sc->intr);
143
144 return error;
145}
146
147static int

--- 30 unchanged lines hidden ---