mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
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:
parent
71160a6cae
commit
2663d38106
3 changed files with 7 additions and 4 deletions
|
@ -540,7 +540,7 @@ kmem_cache_t *my_kmem_cache_create(const char *tag, size_t alloc_size,
|
||||||
void *ctor,
|
void *ctor,
|
||||||
void *dtor);
|
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_alloc(kmem_cache_t *co, int flags);
|
||||||
void my_kmem_cache_free(kmem_cache_t *co, void *ptr);
|
void my_kmem_cache_free(kmem_cache_t *co, void *ptr);
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,14 @@
|
||||||
#define PCI_IDS__H
|
#define PCI_IDS__H
|
||||||
|
|
||||||
#define PCI_VENDOR_ID_NS 0x100b
|
#define PCI_VENDOR_ID_NS 0x100b
|
||||||
#define PCI_DEVICE_ID_NS_87560_LIO 0x000e
|
|
||||||
#define PCI_VENDOR_ID_AMD 0x1022
|
#define PCI_VENDOR_ID_AMD 0x1022
|
||||||
#define PCI_VENDOR_ID_OPTI 0x1045
|
#define PCI_VENDOR_ID_OPTI 0x1045
|
||||||
#define PCI_VENDOR_ID_VIA 0x1106
|
#define PCI_VENDOR_ID_VIA 0x1106
|
||||||
#define PCI_VENDOR_ID_INTEL 0x8086
|
#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)
|
#define PCI_CLASS_SERIAL_USB (PCI_CLASS_SERIAL_BUS_CTLR << 8 + PCI_SUBCLASS_SB_USB)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -337,11 +337,12 @@ kmem_cache_t *my_kmem_cache_create(const char *tag, size_t alloc_size,
|
||||||
return (kmem_cache_t *)Lookaside;
|
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);
|
ExDeleteNPagedLookasideList((PNPAGED_LOOKASIDE_LIST)co);
|
||||||
|
|
||||||
ExFreePool(co);
|
ExFreePool(co);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
/*------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------*/
|
||||||
void *my_kmem_cache_alloc(kmem_cache_t *co, int flags)
|
void *my_kmem_cache_alloc(kmem_cache_t *co, int flags)
|
||||||
|
|
Loading…
Reference in a new issue