File: of_internals.h

package info (click to toggle)
oflib 0git20070620-8
  • links: PTS
  • area: main
  • in suites: buster
  • size: 144 kB
  • sloc: ansic: 751; makefile: 46
file content (29 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/***************************************************************************
 *   (C) Copyright 2006, 2007 Alastair Poole.  <alastairpoole@gmail.com>   *       
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
 
#ifndef __OF_INTERNALS__
#define __OF_INTERNALS__
#include "of_api.h"

void _of_find_node_by_parse(char *path, const void *search, uint16_t type, int full);
struct device_node *_of_return_nodes(struct device_node **array, int *idx,
				     int *sem, int type);
struct device_node *_of_get_name(const char *path, const char *name);
struct device_node *_of_get_type(const char *path, const char *type);
struct device_node *_of_populate_node(const char *path, const char *name);
struct device_node *_of_get_phandle(const char *path, const uint32_t * phandle);

void _of_read_linux_phandle(const char *path, struct device_node *node);
void _of_read_type(const char *path, struct device_node *node);

void _of_remove_filename(char *path);
void _of_get_path(char *path);
void _of_make_compat_path(const char *path, char *buf);

#endif