2
* Written by Oron Peled <oron@actcom.co.il>
3
* Copyright (C) 2004-2006, Xorcom
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29
int xbus_core_init(void); /* Initializer */
30
void xbus_core_shutdown(void); /* Terminator */
33
xpacket_t *xbus_packet_new(xbus_t *xbus, gfp_t flags);
34
void xbus_packet_free(xbus_t *xbus, xpacket_t *p);
37
void init_xbus_packet_queue(packet_queue_t *q, const char name[]);
38
void drain_xbus_packet_queue(xbus_t *xbus, packet_queue_t *q);
39
void xbus_enqueue_packet(xbus_t *xbus, packet_queue_t *q, xpacket_t *pack);
40
xpacket_t *xbus_dequeue_packet(packet_queue_t *q);
43
xbus_t *xbus_of(int xbus_num);
44
xpd_t *xpd_of(xbus_t *xbus, int xpd_num);
45
xbus_t *xbus_new(xbus_ops_t *ops);
46
void xbus_remove(xbus_t *xbus);
47
void xbus_activate(xbus_t *xbus);
48
void xbus_disconnect(xbus_t *xbus);
50
void xbus_reset_counters(xbus_t *xbus);
52
int xbus_register_xpd(xbus_t *xbus, xpd_t *xpd);
53
int xbus_unregister_xpd(xbus_t *xbus, xpd_t *xpd);
55
#endif /* XBUS_CORE_H */