Home | History | Annotate | Line # | Download | only in include
xenring.h revision 1.1
      1  1.1  cherry /* $NetBSD: xenring.h,v 1.1 2019/02/02 12:32:55 cherry Exp $ */
      2  1.1  cherry 
      3  1.1  cherry /*
      4  1.1  cherry  * Glue goop for xbd ring request/response protocol structures.
      5  1.1  cherry  *
      6  1.1  cherry  * These are used only from __XEN_INTERFACE_VERSION__ >= 0x00030201
      7  1.1  cherry  * prior to which they were part of the public XEN api.
      8  1.1  cherry  */
      9  1.1  cherry 
     10  1.1  cherry #ifndef _XEN_RING_H
     11  1.1  cherry #define _XEN_RING_H
     12  1.1  cherry 
     13  1.1  cherry #if __XEN_INTERFACE_VERSION__ >= 0x00030201
     14  1.1  cherry 
     15  1.1  cherry #include <xen/include/public/io/ring.h>
     16  1.1  cherry 
     17  1.1  cherry DEFINE_RING_TYPES(blkif_x86_32, struct blkif_request, struct blkif_response);
     18  1.1  cherry DEFINE_RING_TYPES(blkif_x86_64, struct blkif_request, struct blkif_response);
     19  1.1  cherry 
     20  1.1  cherry typedef struct blkif_request blkif_x86_64_request_t;
     21  1.1  cherry typedef struct blkif_response blkif_x86_64_response_t;
     22  1.1  cherry typedef struct blkif_request blkif_x86_32_request_t;
     23  1.1  cherry typedef struct blkif_response blkif_x86_32_response_t;
     24  1.1  cherry 
     25  1.1  cherry 
     26  1.1  cherry union blkif_back_ring_proto {
     27  1.1  cherry 	blkif_back_ring_t ring_n; /* native/common members */
     28  1.1  cherry 	blkif_x86_32_back_ring_t ring_32;
     29  1.1  cherry 	blkif_x86_64_back_ring_t ring_64;
     30  1.1  cherry };
     31  1.1  cherry typedef union blkif_back_ring_proto blkif_back_ring_proto_t;
     32  1.1  cherry 
     33  1.1  cherry #endif /* __XEN_INTERFACE_VERSION__ >= 0x00030201 */
     34  1.1  cherry #endif /* _XEN_RING_H_ */
     35