diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-06-10 11:37:01 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-06-15 14:56:56 +0800 |
commit | 6ba148bbd78783f59eed3d898638c39b950dcd89 (patch) | |
tree | 338fbf12e0a8cf8bf4e7d14f010142b0c2076286 /src/i830_bios.c | |
parent | cdbf84f20295c8a78624318aa6fdfff3f5c8ce27 (diff) |
Dynamically get the number of child device in general definition block
The size of general definition block varies on different platform/machines.
In such case the number of child device is also different.
And it will be better to get the number of child device in general definition
block dynamically.
The number of child device can be calculated by the following formula:
(block_size - block_header_size) /
sizeof( struct child_device_config)
http://bugs.freedesktop.org/show_bug.cgi?id=20429
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/i830_bios.c')
0 files changed, 0 insertions, 0 deletions