Some minor additions to support newer versions of uhci driver (though doesn't even compile atm).

svn path=/trunk/; revision=14569
This commit is contained in:
Aleksey Bragin 2005-04-10 10:20:10 +00:00
parent 71160a6cae
commit 2663d38106
3 changed files with 7 additions and 4 deletions

View file

@ -540,7 +540,7 @@ kmem_cache_t *my_kmem_cache_create(const char *tag, size_t alloc_size,
void *ctor,
void *dtor);
void my_kmem_cache_destroy(kmem_cache_t *co);
BOOLEAN my_kmem_cache_destroy(kmem_cache_t *co);
void *my_kmem_cache_alloc(kmem_cache_t *co, int flags);
void my_kmem_cache_free(kmem_cache_t *co, void *ptr);

View file

@ -2,12 +2,14 @@
#define PCI_IDS__H
#define PCI_VENDOR_ID_NS 0x100b
#define PCI_DEVICE_ID_NS_87560_LIO 0x000e
#define PCI_VENDOR_ID_AMD 0x1022
#define PCI_VENDOR_ID_OPTI 0x1045
#define PCI_VENDOR_ID_VIA 0x1106
#define PCI_VENDOR_ID_INTEL 0x8086
#define PCI_DEVICE_ID_NS_87560_LIO 0x000e
#define PCI_DEVICE_ID_INTEL_82371AB_2 0x7112
#define PCI_CLASS_SERIAL_USB (PCI_CLASS_SERIAL_BUS_CTLR << 8 + PCI_SUBCLASS_SB_USB)
#endif

View file

@ -337,11 +337,12 @@ kmem_cache_t *my_kmem_cache_create(const char *tag, size_t alloc_size,
return (kmem_cache_t *)Lookaside;
}
/*------------------------------------------------------------------------*/
void my_kmem_cache_destroy(kmem_cache_t *co)
BOOLEAN my_kmem_cache_destroy(kmem_cache_t *co)
{
ExDeleteNPagedLookasideList((PNPAGED_LOOKASIDE_LIST)co);
ExFreePool(co);
ExFreePool(co);
return FALSE;
}
/*------------------------------------------------------------------------*/
void *my_kmem_cache_alloc(kmem_cache_t *co, int flags)