Skip to content

Commit

Permalink
Staging: hv: vmbus_drv: Move the contents of ring_buffer.h to hyperv_…
Browse files Browse the repository at this point in the history
…vmbus.h

Move the contents of ring_buffer.h to hyperv_vmbus.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 3645a91 commit 940655c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 61 deletions.
28 changes: 28 additions & 0 deletions drivers/staging/hv/hyperv_vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -501,4 +501,32 @@ extern void hv_synic_init(void *irqarg);

extern void hv_synic_cleanup(void *arg);


/* Interface */


int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info, void *buffer,
u32 buflen);

void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);

int hv_ringbuffer_write(struct hv_ring_buffer_info *ring_info,
struct scatterlist *sglist,
u32 sgcount);

int hv_ringbuffer_peek(struct hv_ring_buffer_info *ring_info, void *buffer,
u32 buflen);

int hv_ringbuffer_read(struct hv_ring_buffer_info *ring_info,
void *buffer,
u32 buflen,
u32 offset);

u32 hv_get_ringbuffer_interrupt_mask(struct hv_ring_buffer_info *ring_info);

void hv_dump_ring_info(struct hv_ring_buffer_info *ring_info, char *prefix);

void hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
struct hv_ring_buffer_debug_info *debug_info);

#endif /* _HYPERV_VMBUS_H */
1 change: 0 additions & 1 deletion drivers/staging/hv/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "hyperv.h"
#include "hyperv_vmbus.h"
#include "ring_buffer.h"


/* #defines */
Expand Down
59 changes: 0 additions & 59 deletions drivers/staging/hv/ring_buffer.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/hv/vmbus_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#define _VMBUS_PRIVATE_H_

#include "hyperv.h"
#include "ring_buffer.h"
#include <linux/list.h>
#include <asm/sync_bitops.h>

Expand Down

0 comments on commit 940655c

Please sign in to comment.