Deleted Added
full compact
atiixp.c (171329) atiixp.c (172568)
1/*-
2 * Copyright (c) 2005 Ariff Abdullah <ariff@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

58
59#include <dev/pci/pcireg.h>
60#include <dev/pci/pcivar.h>
61#include <sys/sysctl.h>
62#include <sys/endian.h>
63
64#include <dev/sound/pci/atiixp.h>
65
1/*-
2 * Copyright (c) 2005 Ariff Abdullah <ariff@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

58
59#include <dev/pci/pcireg.h>
60#include <dev/pci/pcivar.h>
61#include <sys/sysctl.h>
62#include <sys/endian.h>
63
64#include <dev/sound/pci/atiixp.h>
65
66SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/atiixp.c 171329 2007-07-09 20:41:23Z ariff $");
66SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/atiixp.c 172568 2007-10-12 06:03:46Z kevlo $");
67
68#define ATI_IXP_DMA_RETRY_MAX 100
69
70#define ATI_IXP_BUFSZ_MIN 4096
71#define ATI_IXP_BUFSZ_MAX 65536
72#define ATI_IXP_BUFSZ_DEFAULT 16384
73
74#define ATI_IXP_BLK_MIN 32

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

897 }
898#endif
899
900 if (status & CODEC_CHECK_BITS) {
901 /* mark missing codecs as not ready */
902 detected_codecs = status & CODEC_CHECK_BITS;
903 sc->codec_not_ready_bits |= detected_codecs;
904
67
68#define ATI_IXP_DMA_RETRY_MAX 100
69
70#define ATI_IXP_BUFSZ_MIN 4096
71#define ATI_IXP_BUFSZ_MAX 65536
72#define ATI_IXP_BUFSZ_DEFAULT 16384
73
74#define ATI_IXP_BLK_MIN 32

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

897 }
898#endif
899
900 if (status & CODEC_CHECK_BITS) {
901 /* mark missing codecs as not ready */
902 detected_codecs = status & CODEC_CHECK_BITS;
903 sc->codec_not_ready_bits |= detected_codecs;
904
905 /* disable detected interupt sources */
905 /* disable detected interrupt sources */
906 enable = atiixp_rd(sc, ATI_REG_IER);
907 enable &= ~detected_codecs;
908 atiixp_wr(sc, ATI_REG_IER, enable);
909 wakeup(sc);
910 }
911
912 /* acknowledge */
913 atiixp_wr(sc, ATI_REG_ISR, status);

--- 515 unchanged lines hidden ---
906 enable = atiixp_rd(sc, ATI_REG_IER);
907 enable &= ~detected_codecs;
908 atiixp_wr(sc, ATI_REG_IER, enable);
909 wakeup(sc);
910 }
911
912 /* acknowledge */
913 atiixp_wr(sc, ATI_REG_ISR, status);

--- 515 unchanged lines hidden ---