1 Index: setserial-2.17/setserial.c
2 ===================================================================
3 --- setserial-2.17.orig/setserial.c 2010-10-24 11:21:21.000000000 +0200
4 +++ setserial-2.17/setserial.c 2010-10-24 11:26:55.000000000 +0200
11 +#include <linux/serial.h>
13 #ifdef HAVE_ASM_IOCTLS_H
14 #include <asm/ioctls.h>
16 #ifdef HAVE_LINUX_HAYESESP_H
17 #include <linux/hayesesp.h>
19 +#define HAVE_HAYESESP
22 -#include <linux/serial.h>
27 CMD_CONFIG, "autoconfigure",0, 0, 0, 0,
28 CMD_GETMULTI, "get_multiport",0, 0, 0, 0,
29 CMD_SETMULTI, "set_multiport",0, 0, 0, 0,
32 CMD_RX_TRIG, "rx_trigger", 0, 0, 0, FLAG_NEED_ARG,
33 CMD_TX_TRIG, "tx_trigger", 0, 0, 0, FLAG_NEED_ARG,
34 CMD_FLOW_OFF, "flow_off", 0, 0, 0, FLAG_NEED_ARG,
41 void print_hayesesp(int fd)
43 struct hayes_esp_config esp;
45 print_flags(&serinfo, "\tFlags: ", "");
52 } else if (verbosity==0) {
55 set_multiport(device, fd, &arg);
63 fprintf(stderr, "\t get_multiport\tDisplay the multiport configuration\n");
64 fprintf(stderr, "\t set_multiport\tSet the multiport configuration\n");
65 fprintf(stderr, "\n");
68 fprintf(stderr, "\t* rx_trigger\tSet RX trigger level (ESP-only)\n");
69 fprintf(stderr, "\t* tx_trigger\tSet TX trigger level (ESP-only)\n");
70 fprintf(stderr, "\t* flow_off\tSet hardware flow off level (ESP-only)\n");