allen1017
驱动牛犊
驱动牛犊
  • 注册日期2004-04-08
  • 最后登录2008-04-15
  • 粉丝0
  • 关注0
  • 积分192分
  • 威望22点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
阅读:810回复:0

usb中数据结构的内存如何分配?

楼主#
更多 发布于:2004-04-08 16:20
请教各位,usb中使用frame list,queue head,transfer descriptor时,怎样分配内存空间 ?如下有一例子,但我看不懂 Frame List Entry - 4Bytes / Unit, Allocate 1024 Units (1024*4=4K Bytes)
QueueHead - 8Bytes / Unit, Allocate 64*2 Units (64*8*2=1K Bytes)
TransferDescriptor - 16Bytes / Unit, Allocate 128*2 Units (128*16*2=4K Bytes)
Buffer - Allocate 2048*2=4k Bytes
为何Frame List Entry 分配1024个单元,queue head分配64*2个单元,transfer descriptor分配128*2个单元?这些单元数的应用有没有根据,有的话,是根据什么规格?
游客

返回顶部