Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / c6x / include / asm / dscr.h
1 /*
2  *  Copyright (C) 2011 Texas Instruments Incorporated
3  *  Author: Mark Salter <msalter@redhat.com>
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License version 2 as
7  *  published by the Free Software Foundation.
8  *
9  */
10 #ifndef _ASM_C6X_DSCR_H
11 #define _ASM_C6X_DSCR_H
12
13 enum dscr_devstate_t {
14         DSCR_DEVSTATE_ENABLED,
15         DSCR_DEVSTATE_DISABLED,
16 };
17
18 /*
19  * Set the device state of the device with the given ID.
20  *
21  * Individual drivers should use this to enable or disable the
22  * hardware device. The devid used to identify the device being
23  * controlled should be a property in the device's tree node.
24  */
25 extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);
26
27 /*
28  * Assert or de-assert an RMII reset.
29  */
30 extern void dscr_rmii_reset(int id, int assert);
31
32 extern void dscr_probe(void);
33
34 #endif /* _ASM_C6X_DSCR_H */