proto_busdma.h (b5ff185e19f6013ca565b2a15bc2d6abce933f46) proto_busdma.h (9f011bca829751ed3552ac94fe7c865d75fabfc4)
1/*-
1/*-
2 * Copyright (c) 2015 Marcel Moolenaar
2 * Copyright (c) 2015, 2019 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

--- 44 unchanged lines hidden (view full) ---

55 bus_dma_tag_t bd_tag;
56 bus_dmamap_t bd_map;
57};
58
59struct proto_busdma {
60 LIST_HEAD(,proto_tag) tags;
61 LIST_HEAD(,proto_md) mds;
62 bus_dma_tag_t bd_roottag;
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

--- 44 unchanged lines hidden (view full) ---

55 bus_dma_tag_t bd_tag;
56 bus_dmamap_t bd_map;
57};
58
59struct proto_busdma {
60 LIST_HEAD(,proto_tag) tags;
61 LIST_HEAD(,proto_md) mds;
62 bus_dma_tag_t bd_roottag;
63 struct sx sxlck;
63};
64
65struct proto_busdma *proto_busdma_attach(struct proto_softc *);
66int proto_busdma_detach(struct proto_softc *, struct proto_busdma *);
67
68int proto_busdma_cleanup(struct proto_softc *, struct proto_busdma *);
69
70int proto_busdma_ioctl(struct proto_softc *, struct proto_busdma *,
71 struct proto_ioc_busdma *, struct thread *);
72
73int proto_busdma_mmap_allowed(struct proto_busdma *, vm_paddr_t);
74
75#endif /* _DEV_PROTO_BUSDMA_H_ */
64};
65
66struct proto_busdma *proto_busdma_attach(struct proto_softc *);
67int proto_busdma_detach(struct proto_softc *, struct proto_busdma *);
68
69int proto_busdma_cleanup(struct proto_softc *, struct proto_busdma *);
70
71int proto_busdma_ioctl(struct proto_softc *, struct proto_busdma *,
72 struct proto_ioc_busdma *, struct thread *);
73
74int proto_busdma_mmap_allowed(struct proto_busdma *, vm_paddr_t);
75
76#endif /* _DEV_PROTO_BUSDMA_H_ */