tinyx-devel Mailing List for Tinyx RTOS (Page 4)
Status: Planning
Brought to you by:
davidcohen
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(4) |
Nov
|
Dec
(106) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(69) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Felipe B. <me...@fe...> - 2007-12-12 18:11:39
|
Neve use extern here since we're always building a single binary to flash on a device. There are no modules at all. Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/clock.h | 6 +++--- include/asm-generic/clock.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/clock.h b/arch/arm7/mach-lpc21xx/clock.h index 214fd62..17ab17b 100644 --- a/arch/arm7/mach-lpc21xx/clock.h +++ b/arch/arm7/mach-lpc21xx/clock.h @@ -25,8 +25,8 @@ #include <asm/arch-lpc2xxx/clock.h> #include <tinyx/kernel.h> -extern unsigned int cclk_set_rate(struct clock *clk, unsigned int rate); -extern unsigned int pclk_set_rate(struct clock *clk, unsigned int rate); -extern void pclk_propagate(struct clock *clk, struct clock *parent); +unsigned int cclk_set_rate(struct clock *clk, unsigned int rate); +unsigned int pclk_set_rate(struct clock *clk, unsigned int rate); +void pclk_propagate(struct clock *clk, struct clock *parent); #endif /* __ARCH_MACH_LPC2XXX_CLOCK_H */ diff --git a/include/asm-generic/clock.h b/include/asm-generic/clock.h index 4ac8e7c..28561ea 100644 --- a/include/asm-generic/clock.h +++ b/include/asm-generic/clock.h @@ -34,8 +34,8 @@ struct clock { #define clk_get_rate(clk) (clk)->rate -extern void clk_set_list(struct clock *list, unsigned int num); -extern void clk_propagate(struct clock *clk, struct clock *parent); -extern unsigned int clk_set_rate(struct clock *clk, unsigned int rate); +void clk_set_list(struct clock *list, unsigned int num); +void clk_propagate(struct clock *clk, struct clock *parent); +unsigned int clk_set_rate(struct clock *clk, unsigned int rate); #endif /* __ASM_GENERIC_CLOCK_H */ -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 17:52:00
|
Misc. Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/uart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/uart.c b/arch/arm7/mach-lpc21xx/uart.c index 99c5c78..3daa16c 100644 --- a/arch/arm7/mach-lpc21xx/uart.c +++ b/arch/arm7/mach-lpc21xx/uart.c @@ -38,7 +38,7 @@ static struct device_driver lpc2xxx_uart_driver = { static int __init lpc2xxx_uart_init(void) { - register_device_driver(&lpc2xxx_uart_driver); + return register_device_driver(&lpc2xxx_uart_driver); } early_init(lpc2xxx_uart_init); -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 17:14:19
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/asm-arm7/arch-lpc2xxx/lpc2xxx.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/asm-arm7/arch-lpc2xxx/lpc2xxx.h b/include/asm-arm7/arch-lpc2xxx/lpc2xxx.h index 5cff391..007f72b 100644 --- a/include/asm-arm7/arch-lpc2xxx/lpc2xxx.h +++ b/include/asm-arm7/arch-lpc2xxx/lpc2xxx.h @@ -1,3 +1,24 @@ +/* include/asm-arm7/arch-lpc2xxx/lcp2xxx.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __MACH_LPC2XXX_H #define __MACH_LPC2XXX_H -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 17:06:46
|
Miscelanous fixes on clock subsystem. Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/clock.c | 25 ++++++++++++++++++++++--- arch/arm7/mach-lpc21xx/clock.h | 24 +++--------------------- arch/common/clock.c | 6 +++--- include/asm-generic/clock.h | 6 +++--- 4 files changed, 31 insertions(+), 30 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/clock.c b/arch/arm7/mach-lpc21xx/clock.c index f72eb03..0e86f73 100644 --- a/arch/arm7/mach-lpc21xx/clock.c +++ b/arch/arm7/mach-lpc21xx/clock.c @@ -21,16 +21,35 @@ #include "clock.h" -static unsigned int cclk_set_rate(struct clock *clk, unsigned int rate) +unsigned int cclk_set_rate(struct clock *clk, unsigned int rate) { return 0; } -static unsigned int pclk_set_rate(struct clock *clk, unsigned int rate) +unsigned int pclk_set_rate(struct clock *clk, unsigned int rate) { return 0; } -static void pclk_propagate(struct clock *clk, struct clock *parent) +void pclk_propagate(struct clock *clk, struct clock *parent) { } + +static struct clock pclk = { + .id = PCLK, + .num_child = 0, + .child = NULL, + .set_rate = pclk_set_rate, + .propagate = pclk_propagate, +}; + +static struct clock cclk = { + .id = CCLK, + .num_child = 1, + .child = &pclk, + .set_rate = cclk_set_rate, + .propagate = NULL, +}; + +struct clock *lpc2xxx_clk_list[] = { &cclk, &pclk }; + diff --git a/arch/arm7/mach-lpc21xx/clock.h b/arch/arm7/mach-lpc21xx/clock.h index 9fb8cbb..b863384 100644 --- a/arch/arm7/mach-lpc21xx/clock.h +++ b/arch/arm7/mach-lpc21xx/clock.h @@ -25,26 +25,8 @@ #include <asm/arch-lpc2xxx/clock.h> #include <tinyx/kernel.h> -static unsigned int cclk_set_rate(struct clock *clk, unsigned int rate); -static unsigned int pclk_set_rate(struct clock *clk, unsigned int rate); -static void pclk_propagate(struct clock *clk, struct clock *parent); - -static struct clock pclk = { - .id = PCLK, - .num_child = 0, - .child = NULL, - .set_rate = pclk_set_rate, - .propagate = pclk_propagate, -}; - -static struct clock cclk = { - .id = CCLK, - .num_child = 1, - .child = &pclk, - .set_rate = cclk_set_rate, - .propagate = NULL, -}; - -struct clock *lpc2xxx_clk_list[] = { &cclk, &pclk }; +extern unsigned int cclk_set_rate(struct clock *clk, unsigned int rate); +extern unsigned int pclk_set_rate(struct clock *clk, unsigned int rate); +extern void pclk_propagate(struct clock *clk, struct clock *parent); #endif /* __ARCH_MACH_LPC2XXX_CLOCK_H */ diff --git a/arch/common/clock.c b/arch/common/clock.c index 7d48133..5fd65a5 100644 --- a/arch/common/clock.c +++ b/arch/common/clock.c @@ -25,13 +25,13 @@ static struct clock *clk_list; static unsigned int num_clk; -static void clk_set_list(struct clock *list, unsigned int num) +void clk_set_list(struct clock *list, unsigned int num) { clk_list = list; num_clk = num; } -static void clk_propagate(struct clock *clk, struct clock *parent) +void clk_propagate(struct clock *clk, struct clock *parent) { unsigned int c; struct clock *child; @@ -52,7 +52,7 @@ static void clk_propagate(struct clock *clk, struct clock *parent) } } -static unsigned int clk_set_rate(struct clock *clk, unsigned int rate) +unsigned int clk_set_rate(struct clock *clk, unsigned int rate) { unsigned int clk_rate = rate; unsigned int c; diff --git a/include/asm-generic/clock.h b/include/asm-generic/clock.h index 0aa2332..56fdd96 100644 --- a/include/asm-generic/clock.h +++ b/include/asm-generic/clock.h @@ -34,8 +34,8 @@ struct clock { #define clk_get_rate(clk) (clk)->rate -static void clk_set_list(struct clock *list, unsigned int num); -static void clk_propagate(struct clock *clk, struct clock *parent); -static unsigned int clk_set_rate(struct clock *clk, unsigned int rate); +extern void clk_set_list(struct clock *list, unsigned int num); +extern void clk_propagate(struct clock *clk, struct clock *parent); +extern unsigned int clk_set_rate(struct clock *clk, unsigned int rate); #endif /* __ASM_GENERIC_CLOCK_H */ -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 16:53:55
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/tinyx/libc/string.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/tinyx/libc/string.h b/include/tinyx/libc/string.h index 2455bcc..4ff2b08 100644 --- a/include/tinyx/libc/string.h +++ b/include/tinyx/libc/string.h @@ -1,3 +1,24 @@ +/* include/tinyx/libc/string.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __TINYX_LIBC_STRING_H #define __TINYX_LIBC_STRING_H -- 1.5.3.7.1157.gbf82a |
From: David C. <da...@gm...> - 2007-12-12 16:53:42
|
On Dec 12, 2007 10:59 AM, Felipe Balbi <me...@fe...> wrote: > Definition of module_init. > > Signed-off-by: Felipe Balbi <me...@fe...> > --- > kernel/main.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/kernel/main.c b/kernel/main.c > index 50d9f77..7470d59 100644 > --- a/kernel/main.c > +++ b/kernel/main.c > @@ -24,6 +24,7 @@ > #include <asm/io.h> > #include <tinyx/list.h> > #include <tinyx/kernel.h> > +#include <tinyx/module.h> Same as int the previous comment. modules.h is not needed. BR, David > > > #define UART_BPS(pclk,bps) (pclk / ((bps) * 16.0)) > > -- > 1.5.3.7.1157.gbf82a > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Tinyx-devel mailing list > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tinyx-devel > |
From: Felipe B. <me...@fe...> - 2007-12-12 16:52:48
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/common/clock.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/common/clock.c b/arch/common/clock.c index 7a70aaf..7d48133 100644 --- a/arch/common/clock.c +++ b/arch/common/clock.c @@ -1,3 +1,24 @@ +/* arch/common/clock.c + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Foobar 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #include <asm-generic/clock.h> #include <tinyx/list.h> -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 16:49:28
|
Misc. Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/uart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/uart.c b/arch/arm7/mach-lpc21xx/uart.c index 1830f9b..6c03a0b 100644 --- a/arch/arm7/mach-lpc21xx/uart.c +++ b/arch/arm7/mach-lpc21xx/uart.c @@ -38,7 +38,7 @@ static struct device_driver lpc2xxx_uart_driver = { static int __init lpc2xxx_uart_init(void) { - register_device_driver(&lpc2xxx_uart_driver); + return register_device_driver(&lpc2xxx_uart_driver); } early_init(lpc2xxx_uart_init); -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 16:49:12
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/asm-generic/clock.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/clock.h b/include/asm-generic/clock.h index 1a3e0b8..92e397d 100644 --- a/include/asm-generic/clock.h +++ b/include/asm-generic/clock.h @@ -1,3 +1,24 @@ +/* include/asm-generic/clock.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __ASM_GENERIC_CLOCK_H #define __ASM_GENERIC_CLOCK_H -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 16:46:42
|
This reverts commit a3199b2eb141c22fdc21b5c0bc94f5808e30dfd7. --- include/tinyx/device.h | 5 ----- kernel/device.c | 10 +++++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/include/tinyx/device.h b/include/tinyx/device.h index 96417af..2916925 100644 --- a/include/tinyx/device.h +++ b/include/tinyx/device.h @@ -67,11 +67,6 @@ struct device { struct resource *res; }; -#define device_set_drvdata(dev, data) \ - (dev)->private_data = data -#define device_get_drvdata(dev) \ - (dev)->private_data - int register_bus_type(struct bus_type *bus); int register_device_driver(struct device_driver *drv); int register_device(struct device *dev, struct bus_type *bus); diff --git a/kernel/device.c b/kernel/device.c index 2f01ee4..a7baeb1 100644 --- a/kernel/device.c +++ b/kernel/device.c @@ -44,7 +44,7 @@ int register_bus_type(struct bus_type *bus) return -ENODEV; if (bus->probe) - ret = (*bus->probe)(bus); + ret = bus->probe(bus); if (!ret) list_add_tail(&bus_list, &bus->queue); @@ -62,9 +62,9 @@ int register_device_driver(struct device_driver *drv) dev = match_device_driver(NULL, drv); if (dev) { if (dev->bus->match) - ret = (*dev->bus->match)(dev->bus, dev, drv); + ret = dev->bus->match(dev->bus, dev, drv); if (!ret && drv->probe) - ret = (*drv->probe)(dev); + ret = drv->probe(dev); } if (!ret) @@ -85,9 +85,9 @@ int register_device(struct device *dev, struct bus_type *bus) drv = match_device_driver(dev, NULL); if (drv) { if (bus->match) - ret = (*bus->match)(bus, dev, drv); + ret = bus->match(bus, dev, drv); if (!ret && drv->probe) - ret = (*drv->probe)(dev); + ret = drv->probe(dev); } if (!ret) -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 16:46:34
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/uart.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/uart.c b/arch/arm7/mach-lpc21xx/uart.c index 430f8ce..99c5c78 100644 --- a/arch/arm7/mach-lpc21xx/uart.c +++ b/arch/arm7/mach-lpc21xx/uart.c @@ -1,3 +1,24 @@ +/* arch/arm7/mach-lpc21xx/uart.c + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Foobar 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #include <asm/arch-lpc2xxx/start_lpc2148.h> #include <asm/arch-lpc2xxx/clock.h> #include <tinyx/device.h> -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 16:13:29
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/asm-arm7/arch-lpc2xxx/start_lpc2148.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/asm-arm7/arch-lpc2xxx/start_lpc2148.h b/include/asm-arm7/arch-lpc2xxx/start_lpc2148.h index de65669..ab59646 100644 --- a/include/asm-arm7/arch-lpc2xxx/start_lpc2148.h +++ b/include/asm-arm7/arch-lpc2xxx/start_lpc2148.h @@ -1,3 +1,24 @@ +/* include/asm-arm7/arch-lpc2xxx/start_lcp2148.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Foobar 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __STARTUP_H #define __STARTUP_H -- 1.5.3.7.1157.gbf82a |
From: David C. <da...@gm...> - 2007-12-12 15:28:39
|
Hi, I think it's not goot to follow linux here, as we won't have modules. first_init, early_init, standard_init, late_init and last_init should be enough. Agree? BR, David Cohen On Dec 12, 2007 10:58 AM, Felipe Balbi <me...@fe...> wrote: > This will hold module_init and other definitions directly > related to modules. > > Signed-off-by: Felipe Balbi <me...@fe...> > --- > include/tinyx/module.h | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > create mode 100644 include/tinyx/module.h > > diff --git a/include/tinyx/module.h b/include/tinyx/module.h > new file mode 100644 > index 0000000..0ff90db > --- /dev/null > +++ b/include/tinyx/module.h > @@ -0,0 +1,8 @@ > +#ifndef __TINYX_MODULE_H > +#define __TINYX_MODULE_H > + > +#define module_init(fn) \ > + static initcall_t __initcall_##fn __attribute__ ((section > ("function_ptrs"))) = fn > + > +#endif /* __TINYX_MODULE_H */ > + > -- > 1.5.3.7.1157.gbf82a > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Tinyx-devel mailing list > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tinyx-devel > |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:26
|
Signed-off-by: Felipe Balbi <me...@fe...> --- scripts/expandtree.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/scripts/expandtree.py b/scripts/expandtree.py index ed9f7c3..df76876 100755 --- a/scripts/expandtree.py +++ b/scripts/expandtree.py @@ -1,3 +1,24 @@ +#/* scripts/expandree.py +# * +# * Copyright (C) 2007 David Cohen <da...@gm...> +# * Copyright (C) 2007 Felipe Balbi <me...@fe...> +# * +# * This file is part of Tinyx Nanokernel Project. +# * +# * Tinyx 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 3 of the License, or +# * (at your option) any later version. +# * +# * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. +# */ + #!/usr/bin/env python import sys -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:25
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/start_lpc2148.S | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/start_lpc2148.S b/arch/arm7/mach-lpc21xx/start_lpc2148.S index 6770a19..b76d9b3 100644 --- a/arch/arm7/mach-lpc21xx/start_lpc2148.S +++ b/arch/arm7/mach-lpc21xx/start_lpc2148.S @@ -1,3 +1,24 @@ +;/* arch/arm7/mach-lpc21xx/start_lpc2148.S +; * +; * Copyright (C) 2007 David Cohen <da...@gm...> +; * Copyright (C) 2007 Felipe Balbi <me...@fe...> +; * +; * This file is part of Tinyx Nanokernel Project. +; * +; * Tinyx 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 3 of the License, or +; * (at your option) any later version. +; * +; * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. +; */ + # # *** Startup Code (executed after Reset) *** # -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:23
|
Signed-off-by: Felipe Balbi <me...@fe...> --- kernel/device.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/kernel/device.c b/kernel/device.c index a7baeb1..44374ab 100644 --- a/kernel/device.c +++ b/kernel/device.c @@ -1,3 +1,24 @@ +/* kernel/device.c + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #include <tinyx/device.h> #include <tinyx/list.h> #include <tinyx/libc/string.h> -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:23
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/tinyx/device.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/tinyx/device.h b/include/tinyx/device.h index 2916925..43bdab0 100644 --- a/include/tinyx/device.h +++ b/include/tinyx/device.h @@ -1,3 +1,24 @@ +/* include/tinyx/device.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __TINYX_DEVICE_H #define __TINYX_DEVICE_H -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:23
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/common/clock.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/common/clock.c b/arch/common/clock.c index 7a70aaf..12c3551 100644 --- a/arch/common/clock.c +++ b/arch/common/clock.c @@ -1,3 +1,24 @@ +/* arch/common/clock.c + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #include <asm-generic/clock.h> #include <tinyx/list.h> -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:21
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/tinyx/errno.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/tinyx/errno.h b/include/tinyx/errno.h index ffd2468..0a771bb 100644 --- a/include/tinyx/errno.h +++ b/include/tinyx/errno.h @@ -1,3 +1,24 @@ +/* include/tinyx/errno.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __TINYX_ERRNO_H #define __TINYX_ERRNO_H -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:19
|
This reverts commit a3199b2eb141c22fdc21b5c0bc94f5808e30dfd7. --- include/tinyx/device.h | 5 ----- kernel/device.c | 10 +++++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/include/tinyx/device.h b/include/tinyx/device.h index 96417af..2916925 100644 --- a/include/tinyx/device.h +++ b/include/tinyx/device.h @@ -67,11 +67,6 @@ struct device { struct resource *res; }; -#define device_set_drvdata(dev, data) \ - (dev)->private_data = data -#define device_get_drvdata(dev) \ - (dev)->private_data - int register_bus_type(struct bus_type *bus); int register_device_driver(struct device_driver *drv); int register_device(struct device *dev, struct bus_type *bus); diff --git a/kernel/device.c b/kernel/device.c index 2f01ee4..a7baeb1 100644 --- a/kernel/device.c +++ b/kernel/device.c @@ -44,7 +44,7 @@ int register_bus_type(struct bus_type *bus) return -ENODEV; if (bus->probe) - ret = (*bus->probe)(bus); + ret = bus->probe(bus); if (!ret) list_add_tail(&bus_list, &bus->queue); @@ -62,9 +62,9 @@ int register_device_driver(struct device_driver *drv) dev = match_device_driver(NULL, drv); if (dev) { if (dev->bus->match) - ret = (*dev->bus->match)(dev->bus, dev, drv); + ret = dev->bus->match(dev->bus, dev, drv); if (!ret && drv->probe) - ret = (*drv->probe)(dev); + ret = drv->probe(dev); } if (!ret) @@ -85,9 +85,9 @@ int register_device(struct device *dev, struct bus_type *bus) drv = match_device_driver(dev, NULL); if (drv) { if (bus->match) - ret = (*bus->match)(bus, dev, drv); + ret = bus->match(bus, dev, drv); if (!ret && drv->probe) - ret = (*drv->probe)(dev); + ret = drv->probe(dev); } if (!ret) -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:18
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/clock.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/clock.c b/arch/arm7/mach-lpc21xx/clock.c index 5e3b938..3695c46 100644 --- a/arch/arm7/mach-lpc21xx/clock.c +++ b/arch/arm7/mach-lpc21xx/clock.c @@ -1,3 +1,24 @@ +/* arch/arm7/mach-lpc21xx/clock.c + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #include "clock.h" static unsigned int cclk_set_rate(struct clock *clk, unsigned int rate) -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:17
|
Signed-off-by: Felipe Balbi <me...@fe...> --- include/asm-arm7/platform_device.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/asm-arm7/platform_device.h b/include/asm-arm7/platform_device.h index bcd239c..df117be 100644 --- a/include/asm-arm7/platform_device.h +++ b/include/asm-arm7/platform_device.h @@ -1,3 +1,24 @@ +/* include/asm-arm7/platform_device.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __ASM_PLATFORM_DEVICE_H #define __ASM_PLATFORM_DEVICE_H -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:16
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/clock.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/clock.h b/arch/arm7/mach-lpc21xx/clock.h index 2d3c010..fa5d69a 100644 --- a/arch/arm7/mach-lpc21xx/clock.h +++ b/arch/arm7/mach-lpc21xx/clock.h @@ -1,3 +1,24 @@ +/* arch/arm7/mach-lpc21xx/clock.h + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef __ARCH_MACH_LPC2XXX_CLOCK_H #define __ARCH_MACH_LPC2XXX_CLOCK_H -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:16
|
Miscelanous fixes on clock subsystem. Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/clock.c | 25 ++++++++++++++++++++++--- arch/arm7/mach-lpc21xx/clock.h | 24 +++--------------------- arch/common/clock.c | 6 +++--- include/asm-generic/clock.h | 6 +++--- 4 files changed, 31 insertions(+), 30 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/clock.c b/arch/arm7/mach-lpc21xx/clock.c index 3695c46..61b00e3 100644 --- a/arch/arm7/mach-lpc21xx/clock.c +++ b/arch/arm7/mach-lpc21xx/clock.c @@ -21,16 +21,35 @@ #include "clock.h" -static unsigned int cclk_set_rate(struct clock *clk, unsigned int rate) +unsigned int cclk_set_rate(struct clock *clk, unsigned int rate) { return 0; } -static unsigned int pclk_set_rate(struct clock *clk, unsigned int rate) +unsigned int pclk_set_rate(struct clock *clk, unsigned int rate) { return 0; } -static void pclk_propagate(struct clock *clk, struct clock *parent) +void pclk_propagate(struct clock *clk, struct clock *parent) { } + +static struct clock pclk = { + .id = PCLK, + .num_child = 0, + .child = NULL, + .set_rate = pclk_set_rate, + .propagate = pclk_propagate, +}; + +static struct clock cclk = { + .id = CCLK, + .num_child = 1, + .child = &pclk, + .set_rate = cclk_set_rate, + .propagate = NULL, +}; + +struct clock *lpc2xxx_clk_list[] = { &cclk, &pclk }; + diff --git a/arch/arm7/mach-lpc21xx/clock.h b/arch/arm7/mach-lpc21xx/clock.h index fa5d69a..214fd62 100644 --- a/arch/arm7/mach-lpc21xx/clock.h +++ b/arch/arm7/mach-lpc21xx/clock.h @@ -25,26 +25,8 @@ #include <asm/arch-lpc2xxx/clock.h> #include <tinyx/kernel.h> -static unsigned int cclk_set_rate(struct clock *clk, unsigned int rate); -static unsigned int pclk_set_rate(struct clock *clk, unsigned int rate); -static void pclk_propagate(struct clock *clk, struct clock *parent); - -static struct clock pclk = { - .id = PCLK, - .num_child = 0, - .child = NULL, - .set_rate = pclk_set_rate, - .propagate = pclk_propagate, -}; - -static struct clock cclk = { - .id = CCLK, - .num_child = 1, - .child = &pclk, - .set_rate = cclk_set_rate, - .propagate = NULL, -}; - -struct clock *lpc2xxx_clk_list[] = { &cclk, &pclk }; +extern unsigned int cclk_set_rate(struct clock *clk, unsigned int rate); +extern unsigned int pclk_set_rate(struct clock *clk, unsigned int rate); +extern void pclk_propagate(struct clock *clk, struct clock *parent); #endif /* __ARCH_MACH_LPC2XXX_CLOCK_H */ diff --git a/arch/common/clock.c b/arch/common/clock.c index 12c3551..d92f09e 100644 --- a/arch/common/clock.c +++ b/arch/common/clock.c @@ -25,13 +25,13 @@ static struct clock *clk_list; static unsigned int num_clk; -static void clk_set_list(struct clock *list, unsigned int num) +void clk_set_list(struct clock *list, unsigned int num) { clk_list = list; num_clk = num; } -static void clk_propagate(struct clock *clk, struct clock *parent) +void clk_propagate(struct clock *clk, struct clock *parent) { unsigned int c; struct clock *child; @@ -52,7 +52,7 @@ static void clk_propagate(struct clock *clk, struct clock *parent) } } -static unsigned int clk_set_rate(struct clock *clk, unsigned int rate) +unsigned int clk_set_rate(struct clock *clk, unsigned int rate) { unsigned int clk_rate = rate; unsigned int c; diff --git a/include/asm-generic/clock.h b/include/asm-generic/clock.h index 92e397d..4ac8e7c 100644 --- a/include/asm-generic/clock.h +++ b/include/asm-generic/clock.h @@ -34,8 +34,8 @@ struct clock { #define clk_get_rate(clk) (clk)->rate -static void clk_set_list(struct clock *list, unsigned int num); -static void clk_propagate(struct clock *clk, struct clock *parent); -static unsigned int clk_set_rate(struct clock *clk, unsigned int rate); +extern void clk_set_list(struct clock *list, unsigned int num); +extern void clk_propagate(struct clock *clk, struct clock *parent); +extern unsigned int clk_set_rate(struct clock *clk, unsigned int rate); #endif /* __ASM_GENERIC_CLOCK_H */ -- 1.5.3.7.1157.gbf82a |
From: Felipe B. <me...@fe...> - 2007-12-12 15:23:16
|
Signed-off-by: Felipe Balbi <me...@fe...> --- arch/arm7/mach-lpc21xx/uart.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm7/mach-lpc21xx/uart.c b/arch/arm7/mach-lpc21xx/uart.c index 430f8ce..1830f9b 100644 --- a/arch/arm7/mach-lpc21xx/uart.c +++ b/arch/arm7/mach-lpc21xx/uart.c @@ -1,3 +1,24 @@ +/* arch/arm7/mach-lpc21xx/uart.c + * + * Copyright (C) 2007 David Cohen <da...@gm...> + * Copyright (C) 2007 Felipe Balbi <me...@fe...> + * + * This file is part of Tinyx Nanokernel Project. + * + * Tinyx 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 3 of the License, or + * (at your option) any later version. + * + * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>. + */ + #include <asm/arch-lpc2xxx/start_lpc2148.h> #include <asm/arch-lpc2xxx/clock.h> #include <tinyx/device.h> -- 1.5.3.7.1157.gbf82a |