radio-maxiradio.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) radio-maxiradio.c (77933d7276ee8fa0e2947641941a6f7a100a327b)
1/*
2 * Guillemot Maxi Radio FM 2000 PCI radio card driver for Linux
3 * (C) 2001 Dimitromanolakis Apostolos <apdim@grecian.net>
4 *
5 * Based in the radio Maestro PCI driver. Actually it uses the same chip
6 * for radio but different pci controller.
7 *
8 * I didn't have any specs I reversed engineered the protocol from

--- 152 unchanged lines hidden (view full) ---

161
162static int get_tune(__u16 io)
163{
164 outb(power+clk,io); udelay(4);
165 return !(inb(io) & mo_st);
166}
167
168
1/*
2 * Guillemot Maxi Radio FM 2000 PCI radio card driver for Linux
3 * (C) 2001 Dimitromanolakis Apostolos <apdim@grecian.net>
4 *
5 * Based in the radio Maestro PCI driver. Actually it uses the same chip
6 * for radio but different pci controller.
7 *
8 * I didn't have any specs I reversed engineered the protocol from

--- 152 unchanged lines hidden (view full) ---

161
162static int get_tune(__u16 io)
163{
164 outb(power+clk,io); udelay(4);
165 return !(inb(io) & mo_st);
166}
167
168
169inline static int radio_function(struct inode *inode, struct file *file,
169static inline int radio_function(struct inode *inode, struct file *file,
170 unsigned int cmd, void *arg)
171{
172 struct video_device *dev = video_devdata(file);
173 struct radio_device *card=dev->priv;
174
175 switch(cmd) {
176 case VIDIOCGCAP: {
177 struct video_capability *v = arg;

--- 172 unchanged lines hidden ---
170 unsigned int cmd, void *arg)
171{
172 struct video_device *dev = video_devdata(file);
173 struct radio_device *card=dev->priv;
174
175 switch(cmd) {
176 case VIDIOCGCAP: {
177 struct video_capability *v = arg;

--- 172 unchanged lines hidden ---