1
0

devices -> drivers

This commit is contained in:
2012-10-03 23:30:19 -04:00
parent 9b66a78569
commit 3f624153e7
15 changed files with 7 additions and 7 deletions

View 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 */

View 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 */

View 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
View 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
View 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
View 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);