text
stringlengths 0
14.1k
|
---|
static void kbd98_close(struct serio *port)
|
{
|
free_irq(KBD98_IRQ, NULL);
|
kbd98_flush();
|
}
|
/*
|
* Structures for registering the devices in the serio.c module.
|
*/
|
static struct serio kbd98_port =
|
{
|
.type = SERIO_PC9800,
|
.write = kbd98_write,
|
.open = kbd98_open,
|
.close = kbd98_close,
|
.driver = NULL,
|
.name = ""PC-9801 Kbd Port"",
|
.phys = KBD98_PHYS_DESC,
|
};
|
/*
|
* kbd98io_interrupt() is the most important function in this driver -
|
* it handles the interrupts from keyboard, and sends incoming bytes
|
* to the upper layers.
|
*/
|
static irqreturn_t kbd98io_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
{
|
unsigned long flags;
|
unsigned char data;
|
spin_lock_irqsave(&kbd98io_lock, flags);
|
data = inb(KBD98_DATA_REG);
|
spin_unlock_irqrestore(&kbd98io_lock, flags);
|
serio_interrupt(&kbd98_port, data, 0, regs);
|
return IRQ_HANDLED;
|
}
|
int __init kbd98io_init(void)
|
{
|
serio_register_port(&kbd98_port);
|
printk(KERN_INFO ""serio: PC-9801 %s port at %#lx,%#lx irq %d\n"",
|
""KBD"",
|
(unsigned long) KBD98_DATA_REG,
|
(unsigned long) KBD98_COMMAND_REG,
|
KBD98_IRQ);
|
return 0;
|
}
|
void __exit kbd98io_exit(void)
|
{
|
serio_unregister_port(&kbd98_port);
|
}
|
module_init(kbd98io_init);
|
module_exit(kbd98io_exit);
|
" gpl-2.0
|
bioh4x/NeatFreq lib/genometools-1.4.1/src/gth/ags_build.c 12414 "/*
|
Copyright (c) 2003-2011 Gordon Gremme <[email protected]>
|
Copyright (c) 2003-2008 Center for Bioinformatics, University of Hamburg
|
Permission to use, copy, modify, and distribute this software for any
|
purpose with or without fee is hereby granted, provided that the above
|
copyright notice and this permission notice appear in all copies.
|
THE SOFTWARE IS PROVIDED ""AS IS"" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
*/
|
#include ""gth/ags_build.h""
|
typedef struct {
|
GthDbl exonscore; /* the score of this exonnode */
|
unsigned long lengthofscoringexon; /* the length of the exon where the
|
exonscore came from */
|
} Exonscoreinfo;
|
typedef struct {
|
/* begin of core */
|
GtRange range; /* the range of the exonnode */
|
bool leftmergeable, /* true if the left border is mergeable */
|
rightmergeable; /* true if the right border is mergeable */
|
Introninfo *successorintron; /* points to the successor intron of this exon,
|
if defined. points to NULL, otherwise. */
|
/* end of core */
|
GtArray *exonscores; /* all exon scores of all exons, where this node
|
resulted from */
|
} Exonnode;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.