/********************************************************************* * * Filename: ircomm_tty_attach.h * Version: * Description: * Status: Experimental. * Author: Dag Brattli * Created at: Wed Jun 9 15:55:18 1999 * Modified at: Fri Dec 10 21:04:55 1999 * Modified by: Dag Brattli * * Copyright (c) 1999 Dag Brattli, All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . * ********************************************************************/ #ifndef IRCOMM_TTY_ATTACH_H #define IRCOMM_TTY_ATTACH_H #include typedef enum { IRCOMM_TTY_IDLE, IRCOMM_TTY_SEARCH, IRCOMM_TTY_QUERY_PARAMETERS, IRCOMM_TTY_QUERY_LSAP_SEL, IRCOMM_TTY_SETUP, IRCOMM_TTY_READY, } IRCOMM_TTY_STATE; /* IrCOMM TTY Events */ typedef enum { IRCOMM_TTY_ATTACH_CABLE, IRCOMM_TTY_DETACH_CABLE, IRCOMM_TTY_DATA_REQUEST, IRCOMM_TTY_DATA_INDICATION, IRCOMM_TTY_DISCOVERY_REQUEST, IRCOMM_TTY_DISCOVERY_INDICATION, IRCOMM_TTY_CONNECT_CONFIRM, IRCOMM_TTY_CONNECT_INDICATION, IRCOMM_TTY_DISCONNECT_REQUEST, IRCOMM_TTY_DISCONNECT_INDICATION, IRCOMM_TTY_WD_TIMER_EXPIRED, IRCOMM_TTY_GOT_PARAMETERS, IRCOMM_TTY_GOT_LSAPSEL, } IRCOMM_TTY_EVENT; /* Used for passing information through the state-machine */ struct ircomm_tty_info { __u32 saddr; /* Source device address */ __u32 daddr; /* Destination device address */ __u8 dlsap_sel; }; extern const char *const ircomm_state[]; extern const char *const ircomm_tty_state[]; int ircomm_tty_do_event(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event, struct sk_buff *skb, struct ircomm_tty_info *info); int ircomm_tty_attach_cable(struct ircomm_tty_cb *self); void ircomm_tty_detach_cable(struct ircomm_tty_cb *self); void ircomm_tty_connect_confirm(void *instance, void *sap, struct qos_info *qos, __u32 max_sdu_size, __u8 max_header_size, struct sk_buff *skb); void ircomm_tty_disconnect_indication(void *instance, void *sap, LM_REASON reason, struct sk_buff *skb); void ircomm_tty_connect_indication(void *instance, void *sap, struct qos_info *qos, __u32 max_sdu_size, __u8 max_header_size, struct sk_buff *skb); int ircomm_tty_send_initial_parameters(struct ircomm_tty_cb *self); void ircomm_tty_link_established(struct ircomm_tty_cb *self); #endif /* IRCOMM_TTY_ATTACH_H */ 4f807'>include/net/udplite.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 14:30:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 14:30:04 -0800
commit3ddc76dfc786cc6f87852693227fb0b1f124f807 (patch)
tree8192b4721e05cf6823087f9696db8c0c8f144b02 /include/net/udplite.h
parentb272f732f888d4cf43c943a40c9aaa836f9b7431 (diff)
parent1f3a8e49d8f28f498b8694464623ac20aebfe62a (diff)
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer type cleanups from Thomas Gleixner: "This series does a tree wide cleanup of types related to timers/timekeeping. - Get rid of cycles_t and use a plain u64. The type is not really helpful and caused more confusion than clarity - Get rid of the ktime union. The union has become useless as we use the scalar nanoseconds storage unconditionally now. The 32bit timespec alike storage got removed due to the Y2038 limitations some time ago. That leaves the odd union access around for no reason. Clean it up. Both changes have been done with coccinelle and a small amount of manual mopping up" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: ktime: Get rid of ktime_equal() ktime: Cleanup ktime_set() usage ktime: Get rid of the union clocksource: Use a plain u64 instead of cycle_t
Diffstat (limited to 'include/net/udplite.h')