diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-07-27 20:47:24 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:50 (GMT) |
commit | 454f18a963cf6519bf317e74e6b9781ffef8d253 (patch) | |
tree | 67b206b51dfa5590f3fbdc3db094df1ba5194c6d /drivers/staging/hv/RingBuffer.h | |
parent | 226408a4998041d7832123ab9ccd743e878197ed (diff) | |
download | linux-fsl-qoriq-454f18a963cf6519bf317e74e6b9781ffef8d253.tar.xz |
Staging: hv: Remove C99 comments
Remove C99 // comments with traditional /* */ comments
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/RingBuffer.h')
-rw-r--r-- | drivers/staging/hv/RingBuffer.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/staging/hv/RingBuffer.h b/drivers/staging/hv/RingBuffer.h index 4217259..a0b6e0e 100644 --- a/drivers/staging/hv/RingBuffer.h +++ b/drivers/staging/hv/RingBuffer.h @@ -33,24 +33,24 @@ typedef struct _SG_BUFFER_LIST { } SG_BUFFER_LIST; typedef struct _RING_BUFFER { - volatile u32 WriteIndex; // Offset in bytes from the start of ring data below - volatile u32 ReadIndex; // Offset in bytes from the start of ring data below + volatile u32 WriteIndex; /* Offset in bytes from the start of ring data below */ + volatile u32 ReadIndex; /* Offset in bytes from the start of ring data below */ volatile u32 InterruptMask; - u8 Reserved[4084]; // Pad it to PAGE_SIZE so that data starts on page boundary - // NOTE: The InterruptMask field is used only for channels but since our vmbus connection - // also uses this data structure and its data starts here, we commented out this field. - // volatile u32 InterruptMask; - // Ring data starts here + RingDataStartOffset !!! DO NOT place any fields below this !!! + u8 Reserved[4084]; /* Pad it to PAGE_SIZE so that data starts on page boundary */ + /* NOTE: The InterruptMask field is used only for channels but since our vmbus connection */ + /* also uses this data structure and its data starts here, we commented out this field. */ + /* volatile u32 InterruptMask; */ + /* Ring data starts here + RingDataStartOffset !!! DO NOT place any fields below this !!! */ u8 Buffer[0]; } __attribute__((packed)) RING_BUFFER; typedef struct _RING_BUFFER_INFO { RING_BUFFER* RingBuffer; - u32 RingSize; // Include the shared header + u32 RingSize; /* Include the shared header */ spinlock_t ring_lock; - u32 RingDataSize; // < ringSize + u32 RingDataSize; /* < ringSize */ u32 RingDataStartOffset; } RING_BUFFER_INFO; @@ -65,9 +65,9 @@ typedef struct _RING_BUFFER_DEBUG_INFO { }RING_BUFFER_DEBUG_INFO; -// -// Interface -// + +/* Interface */ + static int RingBufferInit( @@ -120,4 +120,4 @@ RingBufferGetDebugInfo( RING_BUFFER_DEBUG_INFO *DebugInfo ); -#endif // _RING_BUFFER_H_ +#endif /* _RING_BUFFER_H_ */ |