Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283190
b: refs/heads/master
c: 9de98fb
h: refs/heads/master
v: v3
  • Loading branch information
Mark Salter committed Oct 6, 2011
1 parent ac66cee commit 139b797
Show file tree
Hide file tree
Showing 3 changed files with 633 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6bbfd8975cf3b78aadd1513a25bf7b5c04866a6f
refs/heads/master: 9de98fb4ec4c91597feedc521120c16fca54a5b6
34 changes: 34 additions & 0 deletions trunk/arch/c6x/include/asm/dscr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (C) 2011 Texas Instruments Incorporated
* Author: Mark Salter <msalter@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#ifndef _ASM_C6X_DSCR_H
#define _ASM_C6X_DSCR_H

enum dscr_devstate_t {
DSCR_DEVSTATE_ENABLED,
DSCR_DEVSTATE_DISABLED,
};

/*
* Set the device state of the device with the given ID.
*
* Individual drivers should use this to enable or disable the
* hardware device. The devid used to identify the device being
* controlled should be a property in the device's tree node.
*/
extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);

/*
* Assert or de-assert an RMII reset.
*/
extern void dscr_rmii_reset(int id, int assert);

extern void dscr_probe(void);

#endif /* _ASM_C6X_DSCR_H */
Loading

0 comments on commit 139b797

Please sign in to comment.