Send commitlog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r1920 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
   2. r1921 - in trunk/doc/hardware: . GTA02v1 SMDK2440
      ([EMAIL PROTECTED])
   3. r1922 - in trunk/src/host/qemu-neo1973: . hw
      ([EMAIL PROTECTED])
   4. r1923 - trunk/src/target/OM-2007/artwork/sounds
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: laforge
Date: 2007-05-07 18:02:26 +0200 (Mon, 07 May 2007)
New Revision: 1920

Removed:
   trunk/src/target/u-boot/patches/uboot-arm920t_cp15_cmd.patch
Modified:
   trunk/src/target/u-boot/patches/series
Log:
remove patch for 'arm920t cp15' command that was never fully working


Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series      2007-05-07 16:00:22 UTC (rev 
1919)
+++ trunk/src/target/u-boot/patches/series      2007-05-07 16:02:26 UTC (rev 
1920)
@@ -1,6 +1,5 @@
 # just some local hacks
 uboot-machtypes.patch
-uboot-arm920t_cp15_cmd.patch
 ext2load_hex.patch
 uboot-mokoversion.patch
 

Deleted: trunk/src/target/u-boot/patches/uboot-arm920t_cp15_cmd.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-arm920t_cp15_cmd.patch        
2007-05-07 16:00:22 UTC (rev 1919)
+++ trunk/src/target/u-boot/patches/uboot-arm920t_cp15_cmd.patch        
2007-05-07 16:02:26 UTC (rev 1920)
@@ -1,109 +0,0 @@
-This patch adds support for a new arm920 cp15 command to access
-coporocessor registers from the ocmmand line.
-
-Signed-off-by: Harald Welte <[EMAIL PROTECTED]>
-
-Index: u-boot/common/Makefile
-===================================================================
---- u-boot.orig/common/Makefile        2007-02-26 14:11:57.000000000 +0100
-+++ u-boot/common/Makefile     2007-02-26 14:14:16.000000000 +0100
-@@ -27,7 +27,7 @@
- 
- AOBJS =
- 
--COBJS = main.o ACEX1K.o altera.o bedbug.o circbuf.o cmd_autoscript.o \
-+COBJS = main.o ACEX1K.o altera.o bedbug.o circbuf.o cmd_arm920.o 
cmd_autoscript.o \
-         cmd_bdinfo.o cmd_bedbug.o cmd_bmp.o cmd_boot.o cmd_bootm.o \
-         cmd_cache.o cmd_console.o \
-         cmd_date.o cmd_dcr.o cmd_diag.o cmd_display.o cmd_doc.o cmd_dtt.o \
-Index: u-boot/common/cmd_arm920.c
-===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ u-boot/common/cmd_arm920.c 2007-02-26 14:14:36.000000000 +0100
-@@ -0,0 +1,64 @@
-+/*
-+ * (C) Copyright 2006 by OpenMoko, Inc.
-+ * Author: Harald Welte <[EMAIL PROTECTED]>
-+ *
-+ * See file CREDITS for list of people who contributed to this
-+ * project.
-+ *
-+ * 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., 59 Temple Place, Suite 330, Boston,
-+ * MA 02111-1307 USA
-+ */
-+
-+/*
-+ * Boot support
-+ */
-+#include <common.h>
-+#include <command.h>
-+#include <net.h>              /* for print_IPaddr */
-+
-+DECLARE_GLOBAL_DATA_PTR;
-+
-+#if (CONFIG_COMMANDS & CFG_CMD_BDI)
-+
-+extern unsigned long read_p15_c1(void);
-+extern void write_p15_c1(unsigned long);
-+
-+int do_arm920 ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-+{
-+      int i;
-+
-+      if (strcmp(argv[1], "cp15c1")) {
-+              printf("Usage:\n%s\n", cmdtp->usage);
-+              return 1;
-+      }
-+
-+      if (!strcmp(argv[2], "write")) {
-+              ulong val = simple_strtoul(argv[3], NULL, 16);
-+              printf("setting cp15c1 to 0x%08x\n", val);
-+              write_p15_c1(val);
-+      } else if (!strcmp(argv[2], "read"))
-+              printf("cp15c1 = 0x%08x\n", read_p15_c1());
-+
-+      return 0;
-+}
-+
-+/* -------------------------------------------------------------------- */
-+
-+U_BOOT_CMD(
-+      arm920, 4,      1,      do_arm920,
-+      "arm920_cp15  - print cp15\n",
-+      NULL
-+);
-+#endif        /* CFG_CMD_BDI */
-Index: u-boot/cpu/arm920t/cpu.c
-===================================================================
---- u-boot.orig/cpu/arm920t/cpu.c      2007-02-26 04:37:19.000000000 +0100
-+++ u-boot/cpu/arm920t/cpu.c   2007-02-26 14:13:31.000000000 +0100
-@@ -38,7 +38,7 @@
- #endif
- 
- /* read co-processor 15, register #1 (control register) */
--static unsigned long read_p15_c1 (void)
-+unsigned long read_p15_c1 (void)
- {
-       unsigned long value;
- 
-@@ -55,7 +55,7 @@
- }
- 
- /* write to co-processor 15, register #1 (control register) */
--static void write_p15_c1 (unsigned long value)
-+void write_p15_c1 (unsigned long value)
- {
- #ifdef MMU_DEBUG
-       printf ("write %08lx to p15/c1\n", value);




--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2007-05-07 18:05:49 +0200 (Mon, 07 May 2007)
New Revision: 1921

Added:
   trunk/doc/hardware/GTA02v1/
   trunk/doc/hardware/GTA02v1/gpio.txt
   trunk/doc/hardware/SMDK2440/
   trunk/doc/hardware/SMDK2440/gpio.txt
Log:
add GPIO listings for GTA02v1 and SMDK2440


Added: trunk/doc/hardware/GTA02v1/gpio.txt
===================================================================
--- trunk/doc/hardware/GTA02v1/gpio.txt 2007-05-07 16:02:26 UTC (rev 1920)
+++ trunk/doc/hardware/GTA02v1/gpio.txt 2007-05-07 16:05:49 UTC (rev 1921)
@@ -0,0 +1,166 @@
+S3C2440A
+
+GPA0   O       ADDR0   NC
+GPA1   O       ADDR16
+GPA2   O       ADDR17
+GPA3   O       ADDR18
+GPA4   O       ADDR19
+GPA5   O       ADDR20
+GPA6   O       ADDR21
+GPA7   O       ADDR22
+GPA8   O       ADDR23
+GPA9   O       ADDR24
+GPA10  O       ADDR25
+GPA11  O       ADDR26
+GPA12  O       nGCS1   n3D_CS
+GPA13  O       GPA13   nDL_GSM
+GPA14  O       GPA14   NC
+GPA15  O       GPA15                           H-TP1516
+GPA16  O       GPA16   nNAND_WP
+GPA17  O       CLE     NAND_CLE                NAND
+GPA18  O       nALE    nNAND_ALE               NAND
+GPA19  O       nFWE    nNAND_WE                NAND
+GPA20  O       nFRE    nNAND_RD                NAND
+GPA21  O       nRSTOUT nRSTOUT                 NC
+GPA22  O       nFCE    nNAND_CS0               NAND
+
+GPACON = 111 1110 0001 1111 1111 1111 = 0x7e1fff
+
+
+GPB0   O       TOUT0                   LED1501
+GPB1   O       TOUT1                   LET1501
+GPB2   O       TOUT2                   LED1502
+GPB3   O       TOUT3   VIBRATOR_ON
+GPB4   O       GPB4    GPS_PWRON
+GPB5   O       GPB5    MODEM_RST
+GPB6   O       GPB6    BT_EN
+GPB7   O       GPB7    MODEM_ON
+GBP8   O       GPB8    EN_AGPS3V
+GPB9   O       GPB9    USB_PULLUP
+GPB10  O       GPB10   NC
+
+GPBCON = 01 0101 0101 0101 1010 1010 = 0x1555aa
+ 
+
+GPC0   O       GPC0    nGPS_RST
+GPC1   O       GPC1    NC
+GPC2   O       GPC2    NC
+GPC3   O       GPC3    NC
+GPC4   O       GPC4    NC
+GPC5   I       GPC5    PIO_3
+GPC6   O       GPC6    LCD_RESET
+GPC7   I       GPC7    PIO_2
+GPC8   O       GPC8    NC
+GPC9   O       GPC9    NC
+GPC10  O       GPC10   NC
+GPC11  O       GPC11   NC
+GPC12  O       GPC12   NC
+GPC13  O       GPC13   NC
+GPC14  O       GPC14   NC
+GPC15  O       GPC15   NC
+
+GPCCON = 0101 0101 0101 0101 0001 0001 0101 0101 = 0x55551155
+ 
+
+GPD0   O       GPD0    NC
+GPD1   O       GPD1    NC
+GPD2   O       GPD2    NC
+GPD3   O       GPD3    NC
+GPD4   O       GPD4    NC
+GPD5   O       GPD5    NC
+GPD6   O       GPD6    NC
+GPD7   O       GPD7    NC
+GPD8   O       GPD8    NC
+GPD9   O       GPD9    NC
+GPD10  O       GPD10   NC
+GPD11  O       GPD11   NC
+GPD12  O       GPD12   NC
+GPD13  O       GPD13   NC
+GPD14  O       GPD14   NC
+GPD15  O       GPD15   NC
+ 
+GPDCON = 0101 0101 0101 0101 0101 0101 0101 0101 = 0x55555555
+
+
+GPE0   O       I2SLRCK I2SLRCK                 Codec
+GPE1   O       I2SSCLK I2SSCLK                 Codec
+GPE2   O       CDCLK   CDCLK                   Codec
+GPE3   I       I2SSDI  I2SSDI                  Codec
+GPE4   O       I2SSDO  I2SSDO                  Codec
+GPE5   O       SDCLK   SDCLK                   SD Card
+GPE6   O       SDCMD   SDCMD                   SD Card
+GPE7   B       SDDAT0  SDDATA0                 SD Card
+GPE8   B       SDDAT1  SDDATA1                 SD Card
+GPE9   B       SDDAT2  SDDATA2                 SD Card
+GPE10  B       SDDAT3  SDDATA3                 SD Card
+GPE11  I       MISO0   SPI_MISO0
+GPE12  O       MOSI0   SPI_MOSI0
+GPE13  O       CLK0    SPI_CLK0
+GPE14  O       IICSCK  X_I2C_SCL
+GPE15  B       IICSDA  X_I2C_SDA
+ 
+GPECON = 1010 1010 1010 1010 1010 1010 1010 1010 - 0xaaaaaaaa
+
+
+GPF0   I       EINT0   nG1_INT1                g sensor 1
+GPF1   I       EINT1   IO1
+GPF2   I       EINT2   nG2_INT1                g sensor 2
+GPF3   I       EINT3   EINT3                   debug port
+GPF4   I       EINT4   JACK_INSERT             headphone jack
+GPF5   I       EINT5   nSD_CD                  SD card
+GPF6   I       EINT6   AUX                     aux button
+GPF7   I       EINT7   HOLD                    headset
+
+GPFCON = 1010 1010 1010 1010 - 0xaaaa
+
+
+GPG0   I       EINT8   nSIM_CD                 sim card holder
+GPG1   I       EINT9   nPWR_IRQ                PMU
+GPG2   O       nSS0    nSS0                    SPI
+GPG3   O       nSS1    NC                      (future: 2nd int of g-sensor 1)
+GPG4   O       GPG4    LCD_PWRDN
+GPG5   I       MISO1   SPI_MISO1
+GPG6   O       MOSI1   SPI_MOSI1
+GPG7   O       SPICLK  SPI_CLK1
+GPG8   O       GPG8    nG1_CS                  g sensor 1
+GPG9   O       nRTS1   nGPS_CTS
+GPG10  O       nCTS1   nGPS_RTS
+GPG11  I       GPG11   nG2_CS                  g sensor 2
+GPG12  O       GPG12   NC                      (future: 2nd int of g-sensor 2) 
+GPG13  I       GPG13   GPG13
+GPG14  I       GPG14   GPG14
+GPG15  I       GPG15   GPG15
+
+GPGCON = 0000 0001 0011 1101 1111 1101 1111 1010 = 0x013dfdfa
+
+
+GPH0   O       nCTS0   RTS_MODEM               GSM
+GPH1   I       nRTS0   CTS_MODEM               GSM
+GPH2   I       TXD0    RX_MODEM                GSM
+GPH3   O       RXD0    TX_MODEM                GSM
+GPH4   O       TXD1    GPS_RXD                 GPS
+GPH5   I       RXD1    GPS_TXD                 GPS
+GPH6   I       TXD2    MODEM_TXD               rename to CONSOLE_TXD
+GPH7   O       RXD2    MODEM_RXD               rename to CONSOLE_RXD
+GPH8   O       GPH8    NC
+GPH9   O       GPH9    NC
+GPH10  O       GPH10   NC
+
+GPHCON = 10 1000 1010 1010 1010 1010 = 0x28aaaa
+
+
+GPJ0   O       GPJ0    n3D_RST
+GPJ1   I       GPJ2    WLAN_GPIO8
+GPJ2   I       GPJ2    WLAN_GPIO10
+GPJ3   O       GPJ3    KEEPACT                 PMU
+GPJ4   O       GPJ4    NC
+GPJ5   O       GPJ5    NC
+GPJ6   O       GPJ6    NC
+GPJ7   O       GPJ7    NC
+GPJ8   I       GPJ8    BAT_ID                  1wire?
+GPJ9   O       GPJ9    AMP_SHUT
+GPJ10  O       GPJ10   HP_IN
+GPJ11  O       GPJ11   INT0                    GSM
+GPJ12  O       GPJ12   nGSM_EN                 GSM
+
+GPJCON = 01 0101 0100 0101 0101 0100 0001 = 0x1545541

Added: trunk/doc/hardware/SMDK2440/gpio.txt
===================================================================
--- trunk/doc/hardware/SMDK2440/gpio.txt        2007-05-07 16:02:26 UTC (rev 
1920)
+++ trunk/doc/hardware/SMDK2440/gpio.txt        2007-05-07 16:05:49 UTC (rev 
1921)
@@ -0,0 +1,166 @@
+S3C2440A
+
+GPA0   O       ADDR0
+GPA1   O       ADDR16
+GPA2   O       ADDR17
+GPA3   O       ADDR18
+GPA4   O       ADDR19
+GPA5   O       ADDR20
+GPA6   O       ADDR21
+GPA7   O       ADDR22
+GPA8   O       ADDR23
+GPA9   O       ADDR24
+GPA10  O       ADDR25
+GPA11  O       ADDR26
+GPA12  O       nGCS1
+GPA13  O       nGCS2
+GPA14  O       nGCS3
+GPA15  O       nGCS4
+GPA16  O       nGCS5
+GPA17  O       CLE     NAND_CLE                NAND
+GPA18  O       nALE    nNAND_ALE               NAND
+GPA19  O       nFWE    nNAND_WE                NAND
+GPA20  O       nFRE    nNAND_RD                NAND
+GPA21  O       nRSTOUT nRSTOUT                 CPU TP2
+GPA22  O       nFCE    nNAND_CS0               NAND
+
+GPACON = 111 1111 1111 1111 1111 1111 = 0x7fffff
+
+
+GPB0   O       GPB0    KEYBOARD        Keyboard block
+GPB1   O       GPB1    nIrDATXDEN
+GPB2   O       GPB2    L3MODE          Codec
+GPB3   O       GPB3    L3DATA          Codec
+GPB4   O       TCLK0   L3CLOCK         Codec
+GPB5   O       GPB5    nDIS_OFF        LCM
+GPB6   O       GPB6    nSS_KBD         Keyboard block
+GPB7   O       nXDACK1 nXDACK1         Extension connector
+GBP8   I       nXDREQ1 nXDREQ1         Extension connector
+GPB9   O       nXDACK0 nXDACK0         Extension connector
+GPB10  I       nXDREQ0 nXDREQ0         Extension connector
+
+GPBCON = 10 1010 1001 0110 0101 0101 = 0x2a9655
+ 
+
+GPC0   O       LEND    LEND
+GPC1   O       VCLK    VCLK
+GPC2   O       VLINE   VLINE
+GPC3   O       VFRAME  VFRAME
+GPC4   O       VM      VM
+GPC5   I       LPCOE   LCD_LPCOE
+GPC6   I       LPCREV  LCD_LPCREV
+GPC7   I       LPCREVB LCD_LPCREVB
+GPC8   O       VD0
+GPC9   O       VD1
+GPC10  O       VD2     LCD2                    LCM
+GPC11  O       VD3     LCD3                    LCM
+GPC12  O       VD4     LCD4                    LCM
+GPC13  O       VD5     LCD5                    LCM
+GPC14  O       VD6     LCD6                    LCM
+GPC15  O       VD7     LCD7                    LCM
+
+GPCCON = 1010 1010 1010 1010 1010 1010 1010 1010 = 0xaaaaaaaa
+ 
+
+GPD0   O       VD8
+GPD1   O       VD9
+GPD2   O       VD10    LCD10                   LCM
+GPD3   O       VD11    LCD11                   LCM
+GPD4   O       VD12    LCD12                   LCM
+GPD5   O       VD13    LCD13                   LCM
+GPD6   O       VD14    LCD14                   LCM
+GPD7   O       VD15    LCD15                   LCM
+GPD8   O       VD16
+GPD9   O       VD17
+GPD10  O       VD18    LCD18                   LCM
+GPD11  O       VD19    LCD19                   LCM
+GPD12  O       VD20    LCD20                   LCM
+GPD13  O       VD21    LCD21                   LCM
+GPD14  O       VD22    LCD22                   LCM
+GPD15  O       VD23    LCD23                   LCM
+ 
+GPDCON = 1010 1010 1010 1010 1010 1010 1010 1010 = 0xaaaaaaaa
+
+
+GPE0   O       I2SLRCK I2SLRCK                 Codec
+GPE1   O       I2SSCLK I2SSCLK                 Codec
+GPE2   O       CDCLK   CDCLK                   Codec
+GPE3   I       I2SSDI  I2SSDI                  Codec
+GPE4   O       I2SSDO  I2SSDO                  Codec
+GPE5   O       SDCLK   SDCLK                   SD Card
+GPE6   O       SDCMD   SDCMD                   SD Card
+GPE7   B       SDDAT0  SDDATA0                 SD Card
+GPE8   B       SDDAT1  SDDATA1                 SD Card
+GPE9   B       SDDAT2  SDDATA2                 SD Card
+GPE10  B       SDDAT3  SDDATA3                 SD Card
+GPE11  I       MISO0   SPIMISO
+GPE12  O       MOSI0   SPIMOSI
+GPE13  O       CLK0    SPICLK
+GPE14  O       IICSCK  IICSCK
+GPE15  B       IICSDA  IICSDA
+ 
+GPECON = 1010 1010 1010 1010 1010 1010 1010 1010 - 0xaaaaaaaa
+
+
+GPF0   I       EINT0   EINT0
+GPF1   I       EINT1   KBDINT                  Keyboard
+GPF2   I       EINT2   EINT2
+GPF3   O       GPF3    nIRQ_PCMCIA
+GPF4   O       GPF4    nLED_1
+GPF5   O       GPF5    nLED_2
+GPF6   O       GPF6    nLED_4
+GPF7   O       GPF7    nLED_8
+
+GPFCON = 0101 0101 1010 1010 - 0x55aa
+
+
+GPG0   I       EINT8   IRQ_PCMCIA
+GPG1   I       EINT9   IRQ_LAN
+GPG2   O       nSS0    nSS_SPI
+GPG3   O       EINT11  EINT11
+GPG4   O       PWRDN   LCD_PWRDN
+GPG5   I       MISO1   KBDSPIMISO
+GPG6   O       MOSI1   KBDSPIMOSI
+GPG7   O       SPICLK  KBDSPICLK
+GPG8   O       DMAST   DMASTART
+GPG9   O       DMAM0   DMAMODE0
+GPG10  O       DMAM1   DMAMODE1 / nCD_SD
+GPG11  I       EINT19  EINT19
+GPG12  I       EINT20  EINT20
+GPG13  I       EINT21  EINT21
+GPG14  I       EINT22  EINT22
+GPG15  I       EINT23  EINT23
+
+GPGCON = 1010 1010 1001 0101 1111 1111 1011 1010 = 0xaa95ffba
+
+
+GPH0   O       nCTS0   nCTS0
+GPH1   I       nRTS0   nRTS0
+GPH2   I       TXD0    TXD0
+GPH3   O       RXD0    RXD0
+GPH4   O       TXD1    TXD1
+GPH5   I       RXD1    RXD
+GPH6   I       TXD2
+GPH7   O       RXD2
+GPH8   I       GPH8    GPH8
+GPH9   O       CLKOUT0 CLKOUT0
+GPH10  O       CLKOUT1 CLKOUT1
+
+GPHCON = 10 1000 1010 1010 1010 1010 = 0x28aaaa
+
+
+GPJ0   I       CAMDAT0 CAMDATA0
+GPJ1   I       CAMDAT1 CAMDATA1
+GPJ2   I       CAMDAT2 CAMDATA2
+GPJ3   I       CAMDAT3 CAMDATA3
+GPJ4   I       CAMDAT4 CAMDATA4
+GPJ5   I       CAMDAT5 CAMDATA5
+GPJ6   I       CAMDAT6 CAMDATA6
+GPJ7   I       CAMDAT7 CAMDATA7
+GPJ8   I       CAMPCLK CAM_PCLK
+GPJ9   I       CAMVSNC CAM_VSYNC
+GPJ10  I       CAMHREF CAM_HREF
+GPJ11  O       CAMCLK  CAMCLK
+GPJ12  O       CAMRST  CAMRST
+
+GPJCON = 10 1010 1010 1010 1010 1010 1010 = 0x2aaaaaa




--- End Message ---
--- Begin Message ---
Author: andrew
Date: 2007-05-07 19:22:31 +0200 (Mon, 07 May 2007)
New Revision: 1922

Modified:
   trunk/src/host/qemu-neo1973/hw/s3c24xx_udc.c
   trunk/src/host/qemu-neo1973/usb-linux-gadget.c
Log:
Mask out all signals during gadgetfs writes to avoid interrupted calls 
(gadgtefs deficiency).


Modified: trunk/src/host/qemu-neo1973/hw/s3c24xx_udc.c
===================================================================
--- trunk/src/host/qemu-neo1973/hw/s3c24xx_udc.c        2007-05-07 16:05:49 UTC 
(rev 1921)
+++ trunk/src/host/qemu-neo1973/hw/s3c24xx_udc.c        2007-05-07 17:22:31 UTC 
(rev 1922)
@@ -637,6 +637,11 @@
             }
             /* TODO: DMA */
         }
+        /* Perhaps it is a good idea to return USB_RET_ASYNC here and in
+         * USB_TOKEN_SETUP and trigger completion only after OUT_PKT_RDY
+         * condition is serviced by the guest to avoid potential overruns
+         * and so that the host can know about timeouts (seems there's no
+         * way to indicate other errors asynchronously).  */
         break;
     default:
     fail:

Modified: trunk/src/host/qemu-neo1973/usb-linux-gadget.c
===================================================================
--- trunk/src/host/qemu-neo1973/usb-linux-gadget.c      2007-05-07 16:05:49 UTC 
(rev 1921)
+++ trunk/src/host/qemu-neo1973/usb-linux-gadget.c      2007-05-07 17:22:31 UTC 
(rev 1922)
@@ -24,6 +24,7 @@
 #include <linux/usb_ch9.h>
 #include <linux/usb_gadgetfs.h>
 #include <poll.h>
+#include <signal.h>
 
 /* Must be after usb_ch9.h */
 #include "vl.h"
@@ -142,7 +143,8 @@
     } else if (ret == USB_RET_ASYNC) {
         ep->busy = 1;
     } else {
-        fprintf(stderr, "%s: packet unhandled: %i\n", __FUNCTION__, ret);
+        fprintf(stderr, "%s: EP%i packet unhandled: %i\n", __FUNCTION__,
+                        ep->num, ret);
         if (ret != USB_RET_NAK)
             gadget_detach(ep->state);
     }
@@ -167,9 +169,16 @@
 static void gadget_token_in(USBPacket *packet, void *opaque)
 {
     struct ep_s *ep = (struct ep_s *) opaque;
+    sigset_t new, old;
     ep->busy = 0;
+    sigfillset(&new);
+    /* The packets reach 1.5 kB and the loop alone, with unblocked
+     * signals locks qemu up for ~10s until a 1.5 kB write succeeds
+     * uninterrupted.  */
+    pthread_sigmask(SIG_BLOCK, &new, &old);
     while (write(ep->fd, packet->data, packet->len) < packet->len &&
                     errno == EINTR);
+    pthread_sigmask(SIG_SETMASK, &old, 0);
 }
 
 #if 0




--- End Message ---
--- Begin Message ---
Author: wansti
Date: 2007-05-08 00:54:10 +0200 (Tue, 08 May 2007)
New Revision: 1923

Added:
   trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.mp3
   trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.ogg
   trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.wav
   trunk/src/target/OM-2007/artwork/sounds/notify_drone.mp3
   trunk/src/target/OM-2007/artwork/sounds/notify_drone.ogg
   trunk/src/target/OM-2007/artwork/sounds/notify_drone.wav
   trunk/src/target/OM-2007/artwork/sounds/notify_error.mp3
   trunk/src/target/OM-2007/artwork/sounds/notify_error.ogg
   trunk/src/target/OM-2007/artwork/sounds/notify_error.wav
   trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.mp3
   trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.ogg
   trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.wav
   trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.mp3
   trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.ogg
   trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.wav
   trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.mp3
   trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.ogg
   trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.wav
   trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.mp3
   trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.ogg
   trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.wav
   trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.ogg
   trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.wav
   trunk/src/target/OM-2007/artwork/sounds/sms_supertux.mp3
   trunk/src/target/OM-2007/artwork/sounds/sms_supertux.ogg
   trunk/src/target/OM-2007/artwork/sounds/sms_supertux.wav
   trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.mp3
   trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.ogg
   trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.wav
Modified:
   trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.mp3
Log:
added first set of recorded sounds in uncompressed WAV, MP3 (LAME) and Ogg 
Vorbis formats


Added: trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.mp3
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.wav
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_doorbell.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_drone.mp3
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_drone.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_drone.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_drone.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_drone.wav
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_drone.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_error.mp3
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_error.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_error.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_error.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/notify_error.wav
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/notify_error.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.mp3
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.ogg
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.wav
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_goodnight.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.mp3
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.ogg
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.wav
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_ringnroll.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.mp3
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.ogg
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.wav
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_squirrels.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.mp3
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.ogg
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.wav
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_supertux.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.mp3
===================================================================
(Binary files differ)

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.ogg
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.wav
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/ringtone_thereisnophone.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/sms_supertux.mp3
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/sms_supertux.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/sms_supertux.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/sms_supertux.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/sms_supertux.wav
===================================================================
(Binary files differ)


Property changes on: trunk/src/target/OM-2007/artwork/sounds/sms_supertux.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.mp3
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.mp3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.ogg
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.wav
===================================================================
(Binary files differ)


Property changes on: 
trunk/src/target/OM-2007/artwork/sounds/startup_openmoko.wav
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to