Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Macros | Functions
etherRead.c File Reference
#include <bufpool.h>
#include <ether.h>
#include <interrupt.h>
#include <string.h>

Macros

#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size)   ALLOC_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN)
 
#define ALLOC_ALIGN_BUFFER(type, name, size, align)   ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, 1)
 
#define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad)
 
#define PAD_SIZE(s, pad)   (PAD_COUNT(s, pad) * pad)
 

Functions

devcall etherRead (device *devptr, void *buf, uint len)
 

Detailed Description

Authors: Patrick J. McGee Rade Latinovich

Macro Definition Documentation

#define ALLOC_ALIGN_BUFFER_PAD (   type,
  name,
  size,
  align,
  pad 
)
Value:
char __##name[ROUND(PAD_SIZE((size) * sizeof(type), pad), align) \
+ (align - 1)];