Diff for /src/sys/bus/usb/usb_mem.c between versions 1.1 and 1.2

version 1.1, 2003/12/30 01:01:44 version 1.2, 2004/02/11 15:17:26
Line 53 Line 53
 #if defined(__NetBSD__) || defined(__OpenBSD__)  #if defined(__NetBSD__) || defined(__OpenBSD__)
 #include <sys/device.h>         /* for usbdivar.h */  #include <sys/device.h>         /* for usbdivar.h */
 #include <machine/bus.h>  #include <machine/bus.h>
#elif defined(__FreeBSD__)#elif defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/endian.h>  #include <sys/endian.h>
 #include <sys/module.h>  #include <sys/module.h>
 #include <sys/bus.h>  #include <sys/bus.h>
Line 164  usb_block_allocmem(bus_dma_tag_t tag, si Line 164  usb_block_allocmem(bus_dma_tag_t tag, si
         if (p == NULL)          if (p == NULL)
                 return (USBD_NOMEM);                  return (USBD_NOMEM);
   
#if __FreeBSD_version >= 500000#if defined(__FreeBSD__) && __FreeBSD_version >= 500000
         if (bus_dma_tag_create(tag, align, 0,          if (bus_dma_tag_create(tag, align, 0,
             BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,              BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
             size, sizeof(p->segs) / sizeof(p->segs[0]), size,              size, sizeof(p->segs) / sizeof(p->segs[0]), size,

Removed from v.1.1  
changed lines
  Added in v.1.2