| 1 | /* |
| 2 | * vpmadtreg.h - Registration utility for firmware loaders. |
| 3 | * |
| 4 | * Allows drivers for boards that host VPMAD032 modules to initiate firmware |
| 5 | * loads. |
| 6 | * |
| 7 | * Written by Digium Incorporated <[email protected]> |
| 8 | * |
| 9 | * Copyright (C) 2008-2010 Digium, Inc. All rights reserved. |
| 10 | * |
| 11 | * See http://www.asterisk.org for more information about the Asterisk |
| 12 | * project. Please do not directly contact any of the maintainers of this |
| 13 | * project for assistance; the project provides a web site, mailing lists and |
| 14 | * IRC channels for your use. |
| 15 | * |
| 16 | * This program is free software, distributed under the terms of the GNU |
| 17 | * General Public License Version 2 as published by the Free Software |
| 18 | * Foundation. See the LICENSE file included with this program for more |
| 19 | * details. |
| 20 | */ |
| 21 | #ifndef __VPMADTREG_H__ |
| 22 | #define __VPMADTREG_H__ |
| 23 | |
| 24 | struct vpmadt_loader { |
| 25 | struct module *owner; |
| 26 | struct list_head node; |
| 27 | int (*load)(struct voicebus *); |
| 28 | }; |
| 29 | |
| 30 | int vpmadtreg_register(struct vpmadt_loader *loader); |
| 31 | int vpmadtreg_unregister(struct vpmadt_loader *loader); |
| 32 | int vpmadtreg_loadfirmware(struct voicebus *vb); |
| 33 | #endif |