]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - include/linux/of.h
Merge tag 'v3.14-rc5' into HEAD
[mirror_ubuntu-eoan-kernel.git] / include / linux / of.h
CommitLineData
76c1ce78
SR
1#ifndef _LINUX_OF_H
2#define _LINUX_OF_H
3/*
4 * Definitions for talking to the Open Firmware PROM on
5 * Power Macintosh and other computers.
6 *
7 * Copyright (C) 1996-2005 Paul Mackerras.
8 *
9 * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp.
10 * Updates for SPARC64 by David S. Miller
11 * Derived from PowerPC and Sparc prom.h files by Stephen Rothwell, IBM Corp.
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version
16 * 2 of the License, or (at your option) any later version.
17 */
18#include <linux/types.h>
1977f032 19#include <linux/bitops.h>
e51130c0 20#include <linux/errno.h>
6f192492 21#include <linux/kref.h>
283029d1 22#include <linux/mod_devicetable.h>
0d351c3e 23#include <linux/spinlock.h>
5ca4db61 24#include <linux/topology.h>
1cf3d8b3 25#include <linux/notifier.h>
76c1ce78 26
2e89e685 27#include <asm/byteorder.h>
d0a99402 28#include <asm/errno.h>
2e89e685 29
731581e6
GL
30typedef u32 phandle;
31typedef u32 ihandle;
32
33struct property {
34 char *name;
35 int length;
36 void *value;
37 struct property *next;
38 unsigned long _flags;
39 unsigned int unique_id;
40};
41
6f192492
GL
42#if defined(CONFIG_SPARC)
43struct of_irq_controller;
44#endif
45
46struct device_node {
47 const char *name;
48 const char *type;
6016a363 49 phandle phandle;
c22618a1 50 const char *full_name;
6f192492
GL
51
52 struct property *properties;
53 struct property *deadprops; /* removed properties */
54 struct device_node *parent;
55 struct device_node *child;
56 struct device_node *sibling;
57 struct device_node *next; /* next device of same type */
58 struct device_node *allnext; /* next in list of all nodes */
59 struct proc_dir_entry *pde; /* this node's proc directory */
60 struct kref kref;
61 unsigned long _flags;
62 void *data;
63#if defined(CONFIG_SPARC)
c22618a1 64 const char *path_component_name;
6f192492
GL
65 unsigned int unique_id;
66 struct of_irq_controller *irq_trans;
67#endif
68};
69
b66548e2 70#define MAX_PHANDLE_ARGS 16
15c9a0ac
GL
71struct of_phandle_args {
72 struct device_node *np;
73 int args_count;
74 uint32_t args[MAX_PHANDLE_ARGS];
75};
76
0f22dd39
GL
77#ifdef CONFIG_OF_DYNAMIC
78extern struct device_node *of_node_get(struct device_node *node);
79extern void of_node_put(struct device_node *node);
80#else /* CONFIG_OF_DYNAMIC */
3ecdd051
RH
81/* Dummy ref counting routines - to be implemented later */
82static inline struct device_node *of_node_get(struct device_node *node)
83{
84 return node;
85}
0f22dd39
GL
86static inline void of_node_put(struct device_node *node) { }
87#endif /* !CONFIG_OF_DYNAMIC */
3ecdd051 88
c9e358df
GL
89#ifdef CONFIG_OF
90
41f88009 91/* Pointer for first entry in chain of all nodes. */
465aac6d 92extern struct device_node *of_allnodes;
fc0bdae4 93extern struct device_node *of_chosen;
611cad72 94extern struct device_node *of_aliases;
d6d3c4e6 95extern raw_spinlock_t devtree_lock;
41f88009 96
3bcbaf6e
SAS
97static inline bool of_have_populated_dt(void)
98{
465aac6d 99 return of_allnodes != NULL;
3bcbaf6e
SAS
100}
101
035ebefc
AS
102static inline bool of_node_is_root(const struct device_node *node)
103{
104 return node && (node->parent == NULL);
105}
106
50436312
GL
107static inline int of_node_check_flag(struct device_node *n, unsigned long flag)
108{
109 return test_bit(flag, &n->_flags);
110}
111
112static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
113{
114 set_bit(flag, &n->_flags);
115}
116
588453c6
PA
117static inline void of_node_clear_flag(struct device_node *n, unsigned long flag)
118{
119 clear_bit(flag, &n->_flags);
120}
121
122static inline int of_property_check_flag(struct property *p, unsigned long flag)
123{
124 return test_bit(flag, &p->_flags);
125}
126
127static inline void of_property_set_flag(struct property *p, unsigned long flag)
128{
129 set_bit(flag, &p->_flags);
130}
131
132static inline void of_property_clear_flag(struct property *p, unsigned long flag)
133{
134 clear_bit(flag, &p->_flags);
135}
136
e91edcf5
GL
137extern struct device_node *of_find_all_nodes(struct device_node *prev);
138
b6caf2ad 139/*
3d6b8828 140 * OF address retrieval & translation
b6caf2ad
GL
141 */
142
143/* Helper to read a big number; size is in cells (not bytes) */
2e89e685 144static inline u64 of_read_number(const __be32 *cell, int size)
b6caf2ad
GL
145{
146 u64 r = 0;
147 while (size--)
2e89e685 148 r = (r << 32) | be32_to_cpu(*(cell++));
b6caf2ad
GL
149 return r;
150}
151
152/* Like of_read_number, but we want an unsigned long result */
2e89e685 153static inline unsigned long of_read_ulong(const __be32 *cell, int size)
b6caf2ad 154{
2be09cb9
GL
155 /* toss away upper bits if unsigned long is smaller than u64 */
156 return of_read_number(cell, size);
b6caf2ad 157}
b6caf2ad 158
b5b4bb3f 159#if defined(CONFIG_SPARC)
76c1ce78 160#include <asm/prom.h>
b5b4bb3f 161#endif
76c1ce78 162
7c7b60cb
GL
163/* Default #address and #size cells. Allow arch asm/prom.h to override */
164#if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT)
165#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1
166#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
167#endif
168
169/* Default string compare functions, Allow arch asm/prom.h to override */
170#if !defined(of_compat_cmp)
1976152f 171#define of_compat_cmp(s1, s2, l) strcasecmp((s1), (s2))
7c7b60cb
GL
172#define of_prop_cmp(s1, s2) strcmp((s1), (s2))
173#define of_node_cmp(s1, s2) strcasecmp((s1), (s2))
174#endif
175
76c1ce78
SR
176/* flag descriptions */
177#define OF_DYNAMIC 1 /* node and properties were allocated via kmalloc */
178#define OF_DETACHED 2 /* node has been detached from the device tree */
179
61e955db
GL
180#define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
181#define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)
182
76c1ce78
SR
183#define OF_BAD_ADDR ((u64)-1)
184
c0a05bf0 185static inline const char *of_node_full_name(const struct device_node *np)
74a7f084
GL
186{
187 return np ? np->full_name : "<no-node>";
188}
189
76c1ce78
SR
190extern struct device_node *of_find_node_by_name(struct device_node *from,
191 const char *name);
76c1ce78
SR
192extern struct device_node *of_find_node_by_type(struct device_node *from,
193 const char *type);
76c1ce78
SR
194extern struct device_node *of_find_compatible_node(struct device_node *from,
195 const char *type, const char *compat);
50c8af4c
SW
196extern struct device_node *of_find_matching_node_and_match(
197 struct device_node *from,
198 const struct of_device_id *matches,
199 const struct of_device_id **match);
662372e4 200
76c1ce78
SR
201extern struct device_node *of_find_node_by_path(const char *path);
202extern struct device_node *of_find_node_by_phandle(phandle handle);
203extern struct device_node *of_get_parent(const struct device_node *node);
f4eb0107 204extern struct device_node *of_get_next_parent(struct device_node *node);
76c1ce78
SR
205extern struct device_node *of_get_next_child(const struct device_node *node,
206 struct device_node *prev);
3296193d
TT
207extern struct device_node *of_get_next_available_child(
208 const struct device_node *node, struct device_node *prev);
209
9c19761a
SK
210extern struct device_node *of_get_child_by_name(const struct device_node *node,
211 const char *name);
954e04b9 212
a3e31b45
SH
213/* cache lookup */
214extern struct device_node *of_find_next_cache_node(const struct device_node *);
1e291b14
ME
215extern struct device_node *of_find_node_with_property(
216 struct device_node *from, const char *prop_name);
1e291b14 217
76c1ce78
SR
218extern struct property *of_find_property(const struct device_node *np,
219 const char *name,
220 int *lenp);
3daf3726
TP
221extern int of_property_read_u32_index(const struct device_node *np,
222 const char *propname,
223 u32 index, u32 *out_value);
be193249
VK
224extern int of_property_read_u8_array(const struct device_node *np,
225 const char *propname, u8 *out_values, size_t sz);
226extern int of_property_read_u16_array(const struct device_node *np,
227 const char *propname, u16 *out_values, size_t sz);
0e373639 228extern int of_property_read_u32_array(const struct device_node *np,
aac285c6 229 const char *propname,
0e373639
RH
230 u32 *out_values,
231 size_t sz);
4cd7f7a3
JI
232extern int of_property_read_u64(const struct device_node *np,
233 const char *propname, u64 *out_value);
0e373639 234
aac285c6
JI
235extern int of_property_read_string(struct device_node *np,
236 const char *propname,
237 const char **out_string);
4fcd15a0
BC
238extern int of_property_read_string_index(struct device_node *np,
239 const char *propname,
240 int index, const char **output);
7aff0fe3
GL
241extern int of_property_match_string(struct device_node *np,
242 const char *propname,
243 const char *string);
4fcd15a0
BC
244extern int of_property_count_strings(struct device_node *np,
245 const char *propname);
76c1ce78
SR
246extern int of_device_is_compatible(const struct device_node *device,
247 const char *);
834d97d4 248extern int of_device_is_available(const struct device_node *device);
76c1ce78
SR
249extern const void *of_get_property(const struct device_node *node,
250 const char *name,
251 int *lenp);
183912d3 252extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
8af0da93
DA
253#define for_each_property_of_node(dn, pp) \
254 for (pp = dn->properties; pp != NULL; pp = pp->next)
611cad72 255
76c1ce78
SR
256extern int of_n_addr_cells(struct device_node *np);
257extern int of_n_size_cells(struct device_node *np);
283029d1
GL
258extern const struct of_device_id *of_match_node(
259 const struct of_device_id *matches, const struct device_node *node);
3f07af49 260extern int of_modalias_node(struct device_node *node, char *modalias, int len);
624cfca5 261extern void of_print_phandle_args(const char *msg, const struct of_phandle_args *args);
b8fbdc42 262extern struct device_node *of_parse_phandle(const struct device_node *np,
739649c5
GL
263 const char *phandle_name,
264 int index);
93c667ca 265extern int of_parse_phandle_with_args(const struct device_node *np,
64b60e09 266 const char *list_name, const char *cells_name, int index,
15c9a0ac 267 struct of_phandle_args *out_args);
035fd948
SW
268extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
269 const char *list_name, int cells_count, int index,
270 struct of_phandle_args *out_args);
bd69f73f
GL
271extern int of_count_phandle_with_args(const struct device_node *np,
272 const char *list_name, const char *cells_name);
76c1ce78 273
611cad72
SG
274extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align));
275extern int of_alias_get_id(struct device_node *np, const char *stem);
276
21b082ec
GL
277extern int of_machine_is_compatible(const char *compat);
278
79d1c712
NF
279extern int of_add_property(struct device_node *np, struct property *prop);
280extern int of_remove_property(struct device_node *np, struct property *prop);
281extern int of_update_property(struct device_node *np, struct property *newprop);
21b082ec 282
fcdeb7fe 283/* For updating the device tree at runtime */
1cf3d8b3
NF
284#define OF_RECONFIG_ATTACH_NODE 0x0001
285#define OF_RECONFIG_DETACH_NODE 0x0002
286#define OF_RECONFIG_ADD_PROPERTY 0x0003
287#define OF_RECONFIG_REMOVE_PROPERTY 0x0004
288#define OF_RECONFIG_UPDATE_PROPERTY 0x0005
289
290struct of_prop_reconfig {
291 struct device_node *dn;
292 struct property *prop;
293};
294
295extern int of_reconfig_notifier_register(struct notifier_block *);
296extern int of_reconfig_notifier_unregister(struct notifier_block *);
297extern int of_reconfig_notify(unsigned long, void *);
298
299extern int of_attach_node(struct device_node *);
300extern int of_detach_node(struct device_node *);
fcdeb7fe 301
3a1e362e 302#define of_match_ptr(_ptr) (_ptr)
c541adc6
SW
303
304/*
305 * struct property *prop;
306 * const __be32 *p;
307 * u32 u;
308 *
309 * of_property_for_each_u32(np, "propname", prop, p, u)
310 * printk("U32 value: %x\n", u);
311 */
312const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
313 u32 *pu);
c541adc6
SW
314/*
315 * struct property *prop;
316 * const char *s;
317 *
318 * of_property_for_each_string(np, "propname", prop, s)
319 * printk("String value: %s\n", s);
320 */
321const char *of_prop_next_string(struct property *prop, const char *cur);
c541adc6 322
5c19e952
SH
323int of_device_is_stdout_path(struct device_node *dn);
324
b98c0239 325#else /* CONFIG_OF */
3bcbaf6e 326
74a7f084
GL
327static inline const char* of_node_full_name(struct device_node *np)
328{
329 return "<no-node>";
330}
331
1cc44f43
PU
332static inline struct device_node *of_find_node_by_name(struct device_node *from,
333 const char *name)
334{
335 return NULL;
336}
337
662372e4
RH
338static inline struct device_node *of_find_node_by_type(struct device_node *from,
339 const char *type)
066ec1dd
AS
340{
341 return NULL;
342}
343
662372e4
RH
344static inline struct device_node *of_find_matching_node_and_match(
345 struct device_node *from,
346 const struct of_device_id *matches,
347 const struct of_device_id **match)
3bcbaf6e 348{
662372e4 349 return NULL;
3bcbaf6e
SAS
350}
351
662372e4 352static inline struct device_node *of_get_parent(const struct device_node *node)
00b2c76a 353{
662372e4 354 return NULL;
00b2c76a
DH
355}
356
662372e4
RH
357static inline struct device_node *of_get_next_child(
358 const struct device_node *node, struct device_node *prev)
359{
360 return NULL;
361}
aba3dfff 362
662372e4
RH
363static inline struct device_node *of_get_next_available_child(
364 const struct device_node *node, struct device_node *prev)
365{
366 return NULL;
367}
f6f0747e 368
662372e4
RH
369static inline struct device_node *of_find_node_with_property(
370 struct device_node *from, const char *prop_name)
25c040c9
OJ
371{
372 return NULL;
373}
374
662372e4 375static inline bool of_have_populated_dt(void)
183f1d0c 376{
662372e4 377 return false;
183f1d0c
DA
378}
379
662372e4
RH
380static inline struct device_node *of_get_child_by_name(
381 const struct device_node *node,
382 const char *name)
954e04b9 383{
662372e4 384 return NULL;
954e04b9
BW
385}
386
36a0904e
RN
387static inline int of_device_is_compatible(const struct device_node *device,
388 const char *name)
389{
390 return 0;
391}
392
d7195696
RH
393static inline int of_device_is_available(const struct device_node *device)
394{
395 return 0;
396}
397
aba3dfff
SW
398static inline struct property *of_find_property(const struct device_node *np,
399 const char *name,
400 int *lenp)
401{
402 return NULL;
403}
404
2261cc62
SG
405static inline struct device_node *of_find_compatible_node(
406 struct device_node *from,
407 const char *type,
408 const char *compat)
409{
410 return NULL;
411}
412
3daf3726
TP
413static inline int of_property_read_u32_index(const struct device_node *np,
414 const char *propname, u32 index, u32 *out_value)
415{
416 return -ENOSYS;
417}
418
be193249
VK
419static inline int of_property_read_u8_array(const struct device_node *np,
420 const char *propname, u8 *out_values, size_t sz)
421{
422 return -ENOSYS;
423}
424
425static inline int of_property_read_u16_array(const struct device_node *np,
426 const char *propname, u16 *out_values, size_t sz)
427{
428 return -ENOSYS;
429}
430
b98c0239 431static inline int of_property_read_u32_array(const struct device_node *np,
aac285c6
JI
432 const char *propname,
433 u32 *out_values, size_t sz)
b98c0239
SG
434{
435 return -ENOSYS;
436}
437
438static inline int of_property_read_string(struct device_node *np,
aac285c6
JI
439 const char *propname,
440 const char **out_string)
b98c0239
SG
441{
442 return -ENOSYS;
443}
444
4fcd15a0
BC
445static inline int of_property_read_string_index(struct device_node *np,
446 const char *propname, int index,
447 const char **out_string)
448{
449 return -ENOSYS;
450}
451
452static inline int of_property_count_strings(struct device_node *np,
453 const char *propname)
454{
455 return -ENOSYS;
456}
457
89272b8c
SW
458static inline const void *of_get_property(const struct device_node *node,
459 const char *name,
460 int *lenp)
461{
462 return NULL;
463}
464
183912d3
SH
465static inline struct device_node *of_get_cpu_node(int cpu,
466 unsigned int *thread)
467{
468 return NULL;
469}
470
4cd7f7a3
JI
471static inline int of_property_read_u64(const struct device_node *np,
472 const char *propname, u64 *out_value)
473{
474 return -ENOSYS;
475}
476
bd3d5500
TR
477static inline int of_property_match_string(struct device_node *np,
478 const char *propname,
479 const char *string)
480{
481 return -ENOSYS;
482}
483
b8fbdc42 484static inline struct device_node *of_parse_phandle(const struct device_node *np,
36a0904e
RN
485 const char *phandle_name,
486 int index)
487{
488 return NULL;
489}
490
e05e5070
TR
491static inline int of_parse_phandle_with_args(struct device_node *np,
492 const char *list_name,
493 const char *cells_name,
494 int index,
495 struct of_phandle_args *out_args)
496{
497 return -ENOSYS;
498}
499
035fd948
SW
500static inline int of_parse_phandle_with_fixed_args(const struct device_node *np,
501 const char *list_name, int cells_count, int index,
502 struct of_phandle_args *out_args)
503{
504 return -ENOSYS;
505}
506
bd69f73f
GL
507static inline int of_count_phandle_with_args(struct device_node *np,
508 const char *list_name,
509 const char *cells_name)
510{
511 return -ENOSYS;
512}
513
ed5f886d
NF
514static inline int of_alias_get_id(struct device_node *np, const char *stem)
515{
516 return -ENOSYS;
517}
518
50e07f88
SW
519static inline int of_machine_is_compatible(const char *compat)
520{
521 return 0;
522}
523
5c19e952
SH
524static inline int of_device_is_stdout_path(struct device_node *dn)
525{
526 return 0;
527}
528
2adfffa2
SAS
529static inline const __be32 *of_prop_next_u32(struct property *prop,
530 const __be32 *cur, u32 *pu)
531{
532 return NULL;
533}
534
535static inline const char *of_prop_next_string(struct property *prop,
536 const char *cur)
537{
538 return NULL;
539}
540
3a1e362e 541#define of_match_ptr(_ptr) NULL
5762c205 542#define of_match_node(_matches, _node) NULL
9dfbf207 543#endif /* CONFIG_OF */
b98c0239 544
0c3f061c
RH
545#if defined(CONFIG_OF) && defined(CONFIG_NUMA)
546extern int of_node_to_nid(struct device_node *np);
547#else
548static inline int of_node_to_nid(struct device_node *device) { return 0; }
5ca4db61
PM
549#endif
550
662372e4
RH
551static inline struct device_node *of_find_matching_node(
552 struct device_node *from,
553 const struct of_device_id *matches)
554{
555 return of_find_matching_node_and_match(from, matches, NULL);
556}
557
fa4d34cc
JCPV
558/**
559 * of_property_read_bool - Findfrom a property
560 * @np: device node from which the property value is to be read.
561 * @propname: name of the property to be searched.
562 *
563 * Search for a property in a device node.
564 * Returns true if the property exist false otherwise.
565 */
566static inline bool of_property_read_bool(const struct device_node *np,
567 const char *propname)
568{
569 struct property *prop = of_find_property(np, propname, NULL);
570
571 return prop ? true : false;
572}
573
be193249
VK
574static inline int of_property_read_u8(const struct device_node *np,
575 const char *propname,
576 u8 *out_value)
577{
578 return of_property_read_u8_array(np, propname, out_value, 1);
579}
580
581static inline int of_property_read_u16(const struct device_node *np,
582 const char *propname,
583 u16 *out_value)
584{
585 return of_property_read_u16_array(np, propname, out_value, 1);
586}
587
b98c0239 588static inline int of_property_read_u32(const struct device_node *np,
aac285c6 589 const char *propname,
b98c0239
SG
590 u32 *out_value)
591{
592 return of_property_read_u32_array(np, propname, out_value, 1);
593}
594
2adfffa2
SAS
595#define of_property_for_each_u32(np, propname, prop, p, u) \
596 for (prop = of_find_property(np, propname, NULL), \
597 p = of_prop_next_u32(prop, NULL, &u); \
598 p; \
599 p = of_prop_next_u32(prop, p, &u))
600
601#define of_property_for_each_string(np, propname, prop, s) \
602 for (prop = of_find_property(np, propname, NULL), \
603 s = of_prop_next_string(prop, NULL); \
604 s; \
605 s = of_prop_next_string(prop, s))
606
662372e4
RH
607#define for_each_node_by_name(dn, name) \
608 for (dn = of_find_node_by_name(NULL, name); dn; \
609 dn = of_find_node_by_name(dn, name))
610#define for_each_node_by_type(dn, type) \
611 for (dn = of_find_node_by_type(NULL, type); dn; \
612 dn = of_find_node_by_type(dn, type))
613#define for_each_compatible_node(dn, type, compatible) \
614 for (dn = of_find_compatible_node(NULL, type, compatible); dn; \
615 dn = of_find_compatible_node(dn, type, compatible))
616#define for_each_matching_node(dn, matches) \
617 for (dn = of_find_matching_node(NULL, matches); dn; \
618 dn = of_find_matching_node(dn, matches))
619#define for_each_matching_node_and_match(dn, matches, match) \
620 for (dn = of_find_matching_node_and_match(NULL, matches, match); \
621 dn; dn = of_find_matching_node_and_match(dn, matches, match))
622
623#define for_each_child_of_node(parent, child) \
624 for (child = of_get_next_child(parent, NULL); child != NULL; \
625 child = of_get_next_child(parent, child))
626#define for_each_available_child_of_node(parent, child) \
627 for (child = of_get_next_available_child(parent, NULL); child != NULL; \
628 child = of_get_next_available_child(parent, child))
629
630#define for_each_node_with_property(dn, prop_name) \
631 for (dn = of_find_node_with_property(NULL, prop_name); dn; \
632 dn = of_find_node_with_property(dn, prop_name))
633
634static inline int of_get_child_count(const struct device_node *np)
635{
636 struct device_node *child;
637 int num = 0;
638
639 for_each_child_of_node(np, child)
640 num++;
641
642 return num;
643}
644
645static inline int of_get_available_child_count(const struct device_node *np)
646{
647 struct device_node *child;
648 int num = 0;
649
650 for_each_available_child_of_node(np, child)
651 num++;
652
653 return num;
654}
655
34db8aaf
DH
656#if defined(CONFIG_PROC_FS) && defined(CONFIG_PROC_DEVICETREE)
657extern void proc_device_tree_add_node(struct device_node *, struct proc_dir_entry *);
658extern void proc_device_tree_add_prop(struct proc_dir_entry *pde, struct property *prop);
659extern void proc_device_tree_remove_prop(struct proc_dir_entry *pde,
660 struct property *prop);
661extern void proc_device_tree_update_prop(struct proc_dir_entry *pde,
662 struct property *newprop,
663 struct property *oldprop);
664#endif
665
76c1ce78 666#endif /* _LINUX_OF_H */