Diff for /src/sys/bus/usb/usb_mem.h between versions 1.3 and 1.4

version 1.3, 2003/12/30 01:01:44 version 1.4, 2004/02/11 15:17:26
Line 44 Line 44
 typedef struct usb_dma_block {  typedef struct usb_dma_block {
         bus_dma_tag_t tag;          bus_dma_tag_t tag;
         bus_dmamap_t map;          bus_dmamap_t map;
#ifdef __FreeBSD__#if defined(__FreeBSD__) || defined(__DragonFly__)
         void *kaddr;          void *kaddr;
 #else  #else
         caddr_t kaddr;          caddr_t kaddr;
Line 57  typedef struct usb_dma_block { Line 57  typedef struct usb_dma_block {
         LIST_ENTRY(usb_dma_block) next;          LIST_ENTRY(usb_dma_block) next;
 } usb_dma_block_t;  } usb_dma_block_t;
   
#ifdef __FreeBSD__#if defined(__FreeBSD__)  || defined(__DragonFly__)
 #define DMAADDR(dma, o) ((dma)->block->segs[0].ds_addr + (dma)->offs + (o))  #define DMAADDR(dma, o) ((dma)->block->segs[0].ds_addr + (dma)->offs + (o))
 #else  #else
 #define DMAADDR(dma, o) (((char *)(dma)->block->map->dm_segs[0].ds_addr) + (dma)->offs + (o))  #define DMAADDR(dma, o) (((char *)(dma)->block->map->dm_segs[0].ds_addr) + (dma)->offs + (o))

Removed from v.1.3  
changed lines
  Added in v.1.4