mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-04-04 09:37:10 +02:00
23 lines
650 B
C
23 lines
650 B
C
//---
|
|
// core:drivers - Driver utilities for the kernel
|
|
//
|
|
// These are internal definitions; for general driver definitions, see
|
|
// <gint/drivers.h> instead.
|
|
//---
|
|
|
|
#ifndef GINT_CORE_DRIVERS
|
|
#define GINT_CORE_DRIVERS
|
|
|
|
#include <gint/drivers.h>
|
|
|
|
/* Linker script symbols for drivers by increasing levels of priority */
|
|
extern gint_driver_t bdrv, edrv;
|
|
|
|
/* Iterate on drivers in increasing level of priority */
|
|
#define driver_asc(var) \
|
|
(gint_driver_t *var = &bdrv; var < &edrv; var++)
|
|
/* Iterate on drivers in decreasing level of priority */
|
|
#define driver_dsc(var) \
|
|
(gint_driver_t *var = &edrv; (--var) >= &bdrv;)
|
|
|
|
#endif /* GINT_CORE_DRIVERS */
|