devices -> drivers
This commit is contained in:
38
include/drivers/bcm2835_mailbox.h
Normal file
38
include/drivers/bcm2835_mailbox.h
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com>
|
||||
|
||||
This file is part of Aedrix.
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef BCM2835_MAILBOX_H
|
||||
#define BCM2835_MAILBOX_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
/* BCM2835 Mailbox Channels */
|
||||
#define MBOX_PM 0 //Power management interface
|
||||
#define MBOX_FB 1 //Framebuffer
|
||||
#define MBOX_VUART 2 //Virtual UART
|
||||
#define MBOX_YCHIQ 3 //VCHIQ interface
|
||||
#define MBOX_LEDS 4 //LEDs interface
|
||||
#define MBOX_BUTTONS 5 //Buttons interface
|
||||
#define MBOX_TOUCHSCRN 6 //Touch screen interface
|
||||
|
||||
uint32 mailbox_read(uint32 channel);
|
||||
void mailbox_write(uint32 channel, uint32 data);
|
||||
|
||||
#endif /* BCM2835_MAILBOX_H */
|
28
include/drivers/bcm2835_videocore.h
Normal file
28
include/drivers/bcm2835_videocore.h
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com>
|
||||
|
||||
This file is part of Aedrix.
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <framebuffer.h>
|
||||
|
||||
#ifndef BCM2835_VIDEOCORE_H
|
||||
#define BCM2835_VIDEOCORE_H
|
||||
|
||||
int bcm2835_videocore_init(struct fb *f, unsigned int color_depth);
|
||||
|
||||
#endif /* BCM2835_VIDEOCORE_H */
|
27
include/drivers/pi_mini_uart.h
Normal file
27
include/drivers/pi_mini_uart.h
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com>
|
||||
|
||||
This file is part of Aedrix.
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef PI_MINI_UART_H
|
||||
#define PI_MINI_UART_H
|
||||
|
||||
void mini_uart_init();
|
||||
void mini_uart_putc(char c);
|
||||
|
||||
#endif /* PI_MINI_UART_H */
|
26
include/drivers/pl011.h
Normal file
26
include/drivers/pl011.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com>
|
||||
|
||||
This file is part of Aedrix.
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef PL011_H
|
||||
#define PL011_H
|
||||
|
||||
void pl011_putc(char c);
|
||||
|
||||
#endif /* PL011_H */
|
23
include/drivers/pl110.h
Normal file
23
include/drivers/pl110.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com>
|
||||
|
||||
This file is part of Aedrix.
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <framebuffer.h>
|
||||
|
||||
int pl110_init(struct fb *f, unsigned int color_depth);
|
23
include/drivers/pl111.h
Normal file
23
include/drivers/pl111.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com>
|
||||
|
||||
This file is part of Aedrix.
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <framebuffer.h>
|
||||
|
||||
int pl111_init(struct fb *f, unsigned int color_depth);
|
Reference in New Issue
Block a user