| 1622 | } |
| 1623 | |
| 1624 | void alloc_ide_mem (struct ide_hdf **idetable, int max, struct ide_thread_state *its) |
| 1625 | { |
| 1626 | for (int i = 0; i < max; i++) { |
| 1627 | struct ide_hdf *ide; |
| 1628 | if (!idetable[i]) { |
| 1629 | ide = idetable[i] = xcalloc (struct ide_hdf, 1); |
| 1630 | ide->cd_unit_num = -1; |
| 1631 | } |
| 1632 | ide = idetable[i]; |
| 1633 | ide_grow_buffer(ide, 1024); |
| 1634 | if (its) |
| 1635 | ide->its = its; |
| 1636 | } |
| 1637 | } |
| 1638 | |
| 1639 | void remove_ide_unit(struct ide_hdf **idetable, int ch) |
| 1640 | { |
no test coverage detected