Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 495 → Rev 496

/shark/trunk/drivers/oldsnd/sound.c
329,7 → 329,7
return ESRCH;
}
//sb_dev.period = period;
handler_set(sb_dev.IntLine, sb_handler, p_sb);
handler_set(sb_dev.IntLine, sb_handler, p_sb, FALSE);
 
return 0;
}
/shark/trunk/drivers/net/int.c
54,7 → 54,7
handlers[irq].flags = flags;
handlers[irq].data = dev_id;
 
handler_set(irq, linux_intr, NIL);
handler_set(irq, linux_intr, NIL, TRUE);
/*if (fdev_intr_alloc(irq, linux_intr, (void *)irq, 0)) {
handlers[irq].func = 0;
return (-EBUSY);
/shark/trunk/drivers/block/ideglue.c
21,11 → 21,11
 
/***************************************
 
CVS : $Id: ideglue.c,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $
CVS : $Id: ideglue.c,v 1.2 2004-03-09 08:49:12 giacomo Exp $
Revision: $Revision: 1.1.1.1 $
Revision: $Revision: 1.2 $
 
Last update: $Date: 2002-03-29 14:12:49 $
Last update: $Date: 2004-03-09 08:49:12 $
 
This module is used to link the low-level IDE module with
some kernel specific and particular functionality (it is included
122,7 → 122,6
TASK ide_dummy(int x)
{
for (;;) {
cprintf("²");
task_endcycle();
}
return NULL;
173,7 → 172,7
task_activate(ide[ideif].server);
 
/* associate an IRQ handler */
handler_set(ide[ideif].irq,NULL,ide[ideif].server);
handler_set(ide[ideif].irq,NULL,ide[ideif].server, FALSE);
 
return 0;
}
/shark/trunk/drivers/pxc/pxc.c
9,11 → 9,11
*/
/*
Note :
Il seguente modulo permette Š in grado di supportare ogni frame grabber
Il seguente modulo permette in grado di supportare ogni frame grabber
dotato del controllore single-chip Bt848/Bt848A/Bt849 della BrookTree (ora
Conexant)
Per variare la risoluzione di acquisizione o il formato dei dati in ingresso
vanno variati i parametri contenuti nel seguente modulo , il quale Š
vanno variati i parametri contenuti nel seguente modulo , il quale
specifico per immagini di 384x288 pixel codificate a 8 livelli di grigio
Le modifiche possono essere effettuate consultando il manuale di descrizione del
chip Bt848 disponibile al sito www.Conexant.com
168,7 → 168,7
}
/**************************************************************************/
void PXC_Start(void) {
handler_set(IntLine, (void (*)(int))PXC_fast, NIL);
handler_set(IntLine, (void (*)(int))PXC_fast, NIL, FALSE);
lmempokew((void *)(BaseAddr+PXC_GPIO_DMA_CTL),0x0000);
lmempokew((void *)(BaseAddr+PXC_GPIO_DMA_CTL),0x0003);
}
182,7 → 182,7
if (l == NIL) return 0;
if (Lista.Top == PXC_MAX_LISTENERS) {
errore=4;
return 0; // Non vi sono pi— elementi liberi
return 0; // Non vi sono pi elementi liberi
}
 
189,7 → 189,7
pele = Lista.Top;
Lista.Top++;
 
// Setta tutto ci• che serve per il nuovo elemento
// Setta tutto ci che serve per il nuovo elemento
Lista.Elementi[pele].proc=l;
Lista.Elementi[pele].DRel = drel;
 
270,7 → 270,7
 
} else {
// C'Š un errore nell' acquisizione, per ora non lo trattiamo
// C' un errore nell' acquisizione, per ora non lo trattiamo
}
lmempoked((void *)(BaseAddr+PXC_INT_STAT),pen); // EOI al Bt848
285,7 → 285,7
 
// Definizione del programma all' interno dello spazio di memoria puntato
// da Programma , va DWORD aligned , quindi prima lo allineamo, poi
// andiamo a scriverci dentro il programma, il quale pu• essere variabile
// andiamo a scriverci dentro il programma, il quale pu essere variabile
// in funzione delle opzioni di ingresso
Corpo = V_Corpo;
Programma = appl2linear(Corpo);
/shark/trunk/drivers/linuxcom/auto_irq.c
23,7 → 23,7
handled = 0;
 
for (i = 0; i < 16; i++) {
if (handler_set(i, autoirq_probe, NIL) == 1) {
if (handler_set(i, autoirq_probe, NIL, TRUE) == 1) {
set_bit(i, (void *)&handled);
}
}
/shark/trunk/drivers/linuxc26/include/linuxcomp.h
56,7 → 56,7
int shark_event_delete(int index);
 
/* Interrupt handler installation and removal */
int shark_handler_set(int no, void (*fast)(int), int pi);
int shark_handler_set(int no, void (*fast)(int), int pi, BYTE lock);
int shark_handler_remove(int no);
 
#endif
/shark/trunk/drivers/linuxc26/shark_glue.c
1,21 → 1,36
#include <kernel/int_sem.h>
#include <stdlib.h>
#include <kernel/func.h>
#include <ll/sys/ll/event.h>
 
void shark_internal_sem_create(void **sem, int init) {
 
*sem = (void *)malloc(sizeof(internal_sem_t));
internal_sem_init((internal_sem_t *)(*sem),init);
 
*sem = (void *)malloc(sizeof(internal_sem_t));
internal_sem_init((internal_sem_t *)(*sem),init);
}
 
void shark_internal_sem_wait(void *sem) {
internal_sem_wait((internal_sem_t *)(sem));
}
 
internal_sem_wait((internal_sem_t *)(sem));
void shark_internal_sem_post(void *sem) {
internal_sem_post((internal_sem_t *)(sem));
}
 
int shark_event_post(const struct timespec *time, void (*handler)(void *p), void *par)
{
return event_post(*time, handler, par);
}
 
void shark_internal_sem_post(void *sem) {
int shark_event_delete(int index)
{
return event_delete(index);
}
 
internal_sem_post((internal_sem_t *)(sem));
int shark_handler_set(int no, void (*fast)(int), int pi, BYTE lock){
return handler_set(no, fast, (PID)pi, lock);
}
 
int shark_handler_remove(int no){
return handler_remove(no);
}
 
/shark/trunk/drivers/oldchar/scom.c
20,11 → 20,11
 
/**
------------
CVS : $Id: scom.c,v 1.1 2003-03-24 10:54:17 pj Exp $
CVS : $Id: scom.c,v 1.2 2004-03-09 08:49:13 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.1 $
Last update: $Date: 2003-03-24 10:54:17 $
Revision: $Revision: 1.2 $
Last update: $Date: 2004-03-09 08:49:13 $
------------
 
Author: Massimiliano Giorgi
265,7 → 265,7
if (!(com_link[port].status & FAST_INSTALLED)) {
bit_on(com_link[port].status,FAST_INSTALLED);
bit_on(com_link[shared].status,FAST_INSTALLED);
handler_set(hndl,com_fast,NIL);
handler_set(hndl,com_fast,NIL, TRUE);
#ifdef __DEBUG_SERIAL__
cputs("Handler OK\n");
#endif
/shark/trunk/drivers/oldchar/8042.c
20,11 → 20,11
 
/**
------------
CVS : $Id: 8042.c,v 1.4 2003-09-12 10:09:55 giacomo Exp $
CVS : $Id: 8042.c,v 1.5 2004-03-09 08:49:13 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2003-09-12 10:09:55 $
Revision: $Revision: 1.5 $
Last update: $Date: 2004-03-09 08:49:13 $
------------
 
8042.h
876,7 → 876,7
if (status) return status;
 
/* set fast handler and task */
handler_set(C8042_KEYBOARDIRQ,keyb_handler,task);
handler_set(C8042_KEYBOARDIRQ,keyb_handler,task,TRUE);
return 0;
}
 
902,7 → 902,7
if (!ps2mouse_present) return -20;
 
/* set fast handler and task */
handler_set(C8042_PS2IRQ,ps2mouse_handler,NIL);
handler_set(C8042_PS2IRQ,ps2mouse_handler,NIL,TRUE);
/* OK, now ps/2 mouse port is active! */
ps2mouse_active=1;
/shark/trunk/drivers/i2c/i2c-dev.c
140,7 → 140,7
return -ENOMEM;
 
pr_debug("i2c-dev.o: i2c-%d reading %d bytes.\n",
iminor(file->f_dentry->d_inode), count);
(int)iminor(file->f_dentry->d_inode), (int)count);
 
ret = i2c_master_recv(client,tmp,count);
if (ret >= 0)
168,7 → 168,7
}
 
pr_debug("i2c-dev.o: i2c-%d writing %d bytes.\n",
iminor(file->f_dentry->d_inode), count);
(int)iminor(file->f_dentry->d_inode), (int)count);
 
ret = i2c_master_send(client,tmp,count);
kfree(tmp);