/********************************************************************* * * Filename: ircomm_core.h * Version: * Description: * Status: Experimental. * Author: Dag Brattli * Created at: Wed Jun 9 08:58:43 1999 * Modified at: Mon Dec 13 11:52:29 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_CORE_H #define IRCOMM_CORE_H #include #include #include #define IRCOMM_MAGIC 0x98347298 #define IRCOMM_HEADER_SIZE 1 struct ircomm_cb; /* Forward decl. */ /* * A small call-table, so we don't have to check the service-type whenever * we want to do something */ typedef struct { int (*data_request)(struct ircomm_cb *, struct sk_buff *, int clen); int (*connect_request)(struct ircomm_cb *, struct sk_buff *, struct ircomm_info *); int (*connect_response)(struct ircomm_cb *, struct sk_buff *); int (*disconnect_request)(struct ircomm_cb *, struct sk_buff *, struct ircomm_info *); } call_t; struct ircomm_cb { irda_queue_t queue; magic_t magic; notify_t notify; call_t issue; int state; int line; /* Which TTY line we are using */ struct tsap_cb *tsap; struct lsap_cb *lsap; __u8 dlsap_sel; /* Destination LSAP/TSAP selector */ __u8 slsap_sel; /* Source LSAP/TSAP selector */ __u32 saddr; /* Source device address (link we are using) */ __u32 daddr; /* Destination device address */ int max_header_size; /* Header space we must reserve for each frame */ int max_data_size; /* The amount of data we can fill in each frame */ LOCAL_FLOW flow_status; /* Used by ircomm_lmp */ int pkt_count; /* Number of frames we have sent to IrLAP */ __u8 service_type; }; extern hashbin_t *ircomm; struct ircomm_cb *ircomm_open(notify_t *notify, __u8 service_type, int line); int ircomm_close(struct ircomm_cb *self); int ircomm_data_request(struct ircomm_cb *self, struct sk_buff *skb); void ircomm_data_indication(struct ircomm_cb *self, struct sk_buff *skb); void ircomm_process_data(struct ircomm_cb *self, struct sk_buff *skb); int ircomm_control_request(struct ircomm_cb *self, struct sk_buff *skb); int ircomm_connect_request(struct ircomm_cb *self, __u8 dlsap_sel, __u32 saddr, __u32 daddr, struct sk_buff *skb, __u8 service_type); void ircomm_connect_indication(struct ircomm_cb *self, struct sk_buff *skb, struct ircomm_info *info); void ircomm_connect_confirm(struct ircomm_cb *self, struct sk_buff *skb, struct ircomm_info *info); int ircomm_connect_response(struct ircomm_cb *self, struct sk_buff *userdata); int ircomm_disconnect_request(struct ircomm_cb *self, struct sk_buff *userdata); void ircomm_disconnect_indication(struct ircomm_cb *self, struct sk_buff *skb, struct ircomm_info *info); void ircomm_flow_request(struct ircomm_cb *self, LOCAL_FLOW flow); #define ircomm_is_connected(self) (self->state == IRCOMM_CONN) #endif option>space:mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 12:27:05 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 12:27:05 -0800
commit4759d386d55fef452d692bf101167914437e848e (patch)
treee7109c192ec589fcea2a98f9702aa3c0e4009581 /include/uapi/scsi
parent238d1d0f79f619d75c2cc741d6770fb0986aef24 (diff)
parent1db175428ee374489448361213e9c3b749d14900 (diff)
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull DAX updates from Dan Williams: "The completion of Jan's DAX work for 4.10. As I mentioned in the libnvdimm-for-4.10 pull request, these are some final fixes for the DAX dirty-cacheline-tracking invalidation work that was merged through the -mm, ext4, and xfs trees in -rc1. These patches were prepared prior to the merge window, but we waited for 4.10-rc1 to have a stable merge base after all the prerequisites were merged. Quoting Jan on the overall changes in these patches: "So I'd like all these 6 patches to go for rc2. The first three patches fix invalidation of exceptional DAX entries (a bug which is there for a long time) - without these patches data loss can occur on power failure even though user called fsync(2). The other three patches change locking of DAX faults so that ->iomap_begin() is called in a more relaxed locking context and we are safe to start a transaction there for ext4" These have received a build success notification from the kbuild robot, and pass the latest libnvdimm unit tests. There have not been any -next releases since -rc1, so they have not appeared there" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: ext4: Simplify DAX fault path dax: Call ->iomap_begin without entry lock during dax fault dax: Finish fault completely when loading holes dax: Avoid page invalidation races and unnecessary radix tree traversals mm: Invalidate DAX radix tree entries only if appropriate ext2: Return BH_New buffers for zeroed blocks
Diffstat (limited to 'include/uapi/scsi')