Replaced nxreset by noreset (if the reset function gets called, then the
device must be configured. It's hard to tell whether a reset function should be noreset or nullreset since reset functions are never called. Most drivers use nullreset but noreset has the advantage of complaining if somehow gets called).
This commit is contained in:
parent
26ec204be0
commit
81ab2caf0a
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.26 1995/12/10 15:54:42 bde Exp $
|
||||
* $Id: cy.c,v 1.27 1995/12/10 20:34:27 bde Exp $
|
||||
*/
|
||||
|
||||
#include "cy.h"
|
||||
@ -373,7 +373,7 @@ static d_devtotty_t cydevtotty;
|
||||
#define CDEV_MAJOR 48
|
||||
static struct cdevsw cy_cdevsw =
|
||||
{ cyopen, cyclose, cyread, cywrite, /*48*/
|
||||
cyioctl, cystop, nxreset, cydevtotty,/*cyclades*/
|
||||
cyioctl, cystop, noreset, cydevtotty,/*cyclades*/
|
||||
ttselect, nommap, NULL, "cy", NULL, -1 };
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.26 1995/12/10 15:54:42 bde Exp $
|
||||
* $Id: cy.c,v 1.27 1995/12/10 20:34:27 bde Exp $
|
||||
*/
|
||||
|
||||
#include "cy.h"
|
||||
@ -373,7 +373,7 @@ static d_devtotty_t cydevtotty;
|
||||
#define CDEV_MAJOR 48
|
||||
static struct cdevsw cy_cdevsw =
|
||||
{ cyopen, cyclose, cyread, cywrite, /*48*/
|
||||
cyioctl, cystop, nxreset, cydevtotty,/*cyclades*/
|
||||
cyioctl, cystop, noreset, cydevtotty,/*cyclades*/
|
||||
ttselect, nommap, NULL, "cy", NULL, -1 };
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* dgb.c $Id: dgb.c,v 1.11 1995/12/08 23:19:28 phk Exp $
|
||||
* dgb.c $Id: dgb.c,v 1.12 1995/12/10 15:54:01 bde Exp $
|
||||
*
|
||||
* Digiboard driver.
|
||||
*
|
||||
@ -206,7 +206,7 @@ static d_devtotty_t dgbdevtotty;
|
||||
#define CDEV_MAJOR 58
|
||||
static struct cdevsw dgb_cdevsw =
|
||||
{ dgbopen, dgbclose, dgbread, dgbwrite, /*58*/
|
||||
dgbioctl, dgbstop, nxreset, dgbdevtotty, /* dgb */
|
||||
dgbioctl, dgbstop, noreset, dgbdevtotty, /* dgb */
|
||||
ttselect, nommap, NULL, "dgb", NULL, -1 };
|
||||
|
||||
static speed_t dgbdefaultrate = TTYDEF_SPEED;
|
||||
|
@ -111,7 +111,7 @@ static d_devtotty_t rcdevtotty;
|
||||
#define CDEV_MAJOR 63
|
||||
static struct cdevsw rc_cdevsw =
|
||||
{ rcopen, rcclose, rcread, rcwrite, /*63*/
|
||||
rcioctl, rcstop, nxreset, rcdevtotty,/* rc */
|
||||
rcioctl, rcstop, noreset, rcdevtotty,/* rc */
|
||||
ttselect, nommap, NULL, "rc", NULL, -1 };
|
||||
|
||||
/* Per-board structure */
|
||||
|
@ -30,7 +30,7 @@
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||
*
|
||||
* $Id: si.c,v 1.26 1995/12/10 15:54:47 bde Exp $
|
||||
* $Id: si.c,v 1.27 1995/12/10 20:34:30 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -124,7 +124,7 @@ static d_devtotty_t sidevtotty;
|
||||
#define CDEV_MAJOR 68
|
||||
static struct cdevsw si_cdevsw =
|
||||
{ siopen, siclose, siread, siwrite, /*68*/
|
||||
siioctl, sistop, nxreset, sidevtotty,/* si */
|
||||
siioctl, sistop, noreset, sidevtotty,/* si */
|
||||
ttselect, nommap, NULL, "si", NULL, -1 };
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.127 1995/12/10 13:39:13 phk Exp $
|
||||
* $Id: sio.c,v 1.128 1995/12/10 15:54:50 bde Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
@ -310,7 +310,7 @@ static d_devtotty_t siodevtotty;
|
||||
#define CDEV_MAJOR 28
|
||||
static struct cdevsw sio_cdevsw =
|
||||
{ sioopen, sioclose, sioread, siowrite, /*28*/
|
||||
sioioctl, siostop, nxreset, siodevtotty,/* sio */
|
||||
sioioctl, siostop, noreset, siodevtotty,/* sio */
|
||||
ttselect, nommap, NULL, driver_name, NULL, -1 };
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* dgb.c $Id: dgb.c,v 1.11 1995/12/08 23:19:28 phk Exp $
|
||||
* dgb.c $Id: dgb.c,v 1.12 1995/12/10 15:54:01 bde Exp $
|
||||
*
|
||||
* Digiboard driver.
|
||||
*
|
||||
@ -206,7 +206,7 @@ static d_devtotty_t dgbdevtotty;
|
||||
#define CDEV_MAJOR 58
|
||||
static struct cdevsw dgb_cdevsw =
|
||||
{ dgbopen, dgbclose, dgbread, dgbwrite, /*58*/
|
||||
dgbioctl, dgbstop, nxreset, dgbdevtotty, /* dgb */
|
||||
dgbioctl, dgbstop, noreset, dgbdevtotty, /* dgb */
|
||||
ttselect, nommap, NULL, "dgb", NULL, -1 };
|
||||
|
||||
static speed_t dgbdefaultrate = TTYDEF_SPEED;
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.26 1995/12/10 15:54:42 bde Exp $
|
||||
* $Id: cy.c,v 1.27 1995/12/10 20:34:27 bde Exp $
|
||||
*/
|
||||
|
||||
#include "cy.h"
|
||||
@ -373,7 +373,7 @@ static d_devtotty_t cydevtotty;
|
||||
#define CDEV_MAJOR 48
|
||||
static struct cdevsw cy_cdevsw =
|
||||
{ cyopen, cyclose, cyread, cywrite, /*48*/
|
||||
cyioctl, cystop, nxreset, cydevtotty,/*cyclades*/
|
||||
cyioctl, cystop, noreset, cydevtotty,/*cyclades*/
|
||||
ttselect, nommap, NULL, "cy", NULL, -1 };
|
||||
|
||||
|
||||
|
@ -111,7 +111,7 @@ static d_devtotty_t rcdevtotty;
|
||||
#define CDEV_MAJOR 63
|
||||
static struct cdevsw rc_cdevsw =
|
||||
{ rcopen, rcclose, rcread, rcwrite, /*63*/
|
||||
rcioctl, rcstop, nxreset, rcdevtotty,/* rc */
|
||||
rcioctl, rcstop, noreset, rcdevtotty,/* rc */
|
||||
ttselect, nommap, NULL, "rc", NULL, -1 };
|
||||
|
||||
/* Per-board structure */
|
||||
|
@ -30,7 +30,7 @@
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
||||
*
|
||||
* $Id: si.c,v 1.26 1995/12/10 15:54:47 bde Exp $
|
||||
* $Id: si.c,v 1.27 1995/12/10 20:34:30 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -124,7 +124,7 @@ static d_devtotty_t sidevtotty;
|
||||
#define CDEV_MAJOR 68
|
||||
static struct cdevsw si_cdevsw =
|
||||
{ siopen, siclose, siread, siwrite, /*68*/
|
||||
siioctl, sistop, nxreset, sidevtotty,/* si */
|
||||
siioctl, sistop, noreset, sidevtotty,/* si */
|
||||
ttselect, nommap, NULL, "si", NULL, -1 };
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.127 1995/12/10 13:39:13 phk Exp $
|
||||
* $Id: sio.c,v 1.128 1995/12/10 15:54:50 bde Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
@ -310,7 +310,7 @@ static d_devtotty_t siodevtotty;
|
||||
#define CDEV_MAJOR 28
|
||||
static struct cdevsw sio_cdevsw =
|
||||
{ sioopen, sioclose, sioread, siowrite, /*28*/
|
||||
sioioctl, siostop, nxreset, siodevtotty,/* sio */
|
||||
sioioctl, siostop, noreset, siodevtotty,/* sio */
|
||||
ttselect, nommap, NULL, driver_name, NULL, -1 };
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.127 1995/12/10 13:39:13 phk Exp $
|
||||
* $Id: sio.c,v 1.128 1995/12/10 15:54:50 bde Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
@ -310,7 +310,7 @@ static d_devtotty_t siodevtotty;
|
||||
#define CDEV_MAJOR 28
|
||||
static struct cdevsw sio_cdevsw =
|
||||
{ sioopen, sioclose, sioread, siowrite, /*28*/
|
||||
sioioctl, siostop, nxreset, siodevtotty,/* sio */
|
||||
sioioctl, siostop, noreset, siodevtotty,/* sio */
|
||||
ttselect, nommap, NULL, driver_name, NULL, -1 };
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user