vpmadtreg.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 <support@digium.com>
  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. struct vpmadt_loader {
  24. struct module *owner;
  25. struct list_head node;
  26. int (*load)(struct voicebus *);
  27. };
  28. int vpmadtreg_register(struct vpmadt_loader *loader);
  29. int vpmadtreg_unregister(struct vpmadt_loader *loader);
  30. int vpmadtreg_loadfirmware(struct voicebus *vb);
  31. #endif