1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * The Linux BAYCOM driver for the Baycom serial 1200 baud modem 4607ca46eSDavid Howells * and the parallel 9600 baud modem 5607ca46eSDavid Howells * (C) 1997-1998 by Thomas Sailer, HB9JNX/AE4WA 6607ca46eSDavid Howells */ 7607ca46eSDavid Howells 8607ca46eSDavid Howells #ifndef _BAYCOM_H 9607ca46eSDavid Howells #define _BAYCOM_H 10607ca46eSDavid Howells 11607ca46eSDavid Howells /* -------------------------------------------------------------------- */ 12607ca46eSDavid Howells /* 13607ca46eSDavid Howells * structs for the IOCTL commands 14607ca46eSDavid Howells */ 15607ca46eSDavid Howells 16607ca46eSDavid Howells struct baycom_debug_data { 17607ca46eSDavid Howells unsigned long debug1; 18607ca46eSDavid Howells unsigned long debug2; 19607ca46eSDavid Howells long debug3; 20607ca46eSDavid Howells }; 21607ca46eSDavid Howells 22607ca46eSDavid Howells struct baycom_ioctl { 23607ca46eSDavid Howells int cmd; 24607ca46eSDavid Howells union { 25607ca46eSDavid Howells struct baycom_debug_data dbg; 26607ca46eSDavid Howells } data; 27607ca46eSDavid Howells }; 28607ca46eSDavid Howells 29607ca46eSDavid Howells /* -------------------------------------------------------------------- */ 30607ca46eSDavid Howells 31607ca46eSDavid Howells /* 32607ca46eSDavid Howells * ioctl values change for baycom 33607ca46eSDavid Howells */ 34607ca46eSDavid Howells #define BAYCOMCTL_GETDEBUG 0x92 35607ca46eSDavid Howells 36607ca46eSDavid Howells /* -------------------------------------------------------------------- */ 37607ca46eSDavid Howells 38607ca46eSDavid Howells #endif /* _BAYCOM_H */ 39607ca46eSDavid Howells 40607ca46eSDavid Howells /* --------------------------------------------------------------------- */ 41