if (count > max)
count = max;
- SET_FLATPTR(dma->buf_fl, dest);
+ SET_LOWFLAT(dma->buf_fl, dest);
bytes -= count;
if (!bytes)
// Last descriptor.
count |= 1<<31;
dprintf(16, "dma@%p: %08x %08x\n", dma, dest, count);
dest += count;
- SET_FLATPTR(dma->count, count);
+ SET_LOWFLAT(dma->count, count);
dma++;
}
int
usb_send_bulk(struct usb_pipe *pipe_fl, int dir, void *data, int datasize)
{
- switch (GET_FLATPTR(pipe_fl->type)) {
+ switch (GET_LOWFLAT(pipe_fl->type)) {
default:
case USB_TYPE_UHCI:
return uhci_send_bulk(pipe_fl, dir, data, datasize);
int noinline
usb_poll_intr(struct usb_pipe *pipe_fl, void *data)
{
- switch (GET_FLATPTR(pipe_fl->type)) {
+ switch (GET_LOWFLAT(pipe_fl->type)) {
default:
case USB_TYPE_UHCI:
return uhci_poll_intr(pipe_fl, data);