crystalhd: initial import of released Broadcom code

Straight import of:
http://www.broadcom.com/docs/support/crystalhd/crystalhd_linux_20091229.zip

Unfortunately, we're unable to publicly publish all the history that got
us from the initial internal code to what was released here, but such is
life, we can just be happy we've got this open-sourced now. :)

Signed-off-by: Jarod Wilson <jarod@redhat.com>
crystalhd: run dos2unix over everything, this is linux source...

Signed-off-by: Jarod Wilson <jarod@redhat.com>
crystalhd: coding style cleanups

Signed-off-by: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: restore legacy kernel support

We'll rip it out on export using unifdef

Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: create crystalhd device using udev

Based on:
http://sourceforge.net/apps/trac/archvdr/browser/trunk/archvdr/crystalhd/use_udev.patch

Signed-off-by: Edgar ( gimli ) Hucek <ebsi4711 at gmail dot com>

Formatting tweaks, error-handling path fixups and any bugs added by Jarod.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
lib: install headers and firmware via make install

Signed-off-by: Scott Davilla <davilla@4pi.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
lib: use the new firmware file name

Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: install udev rules too

Signed-off-by: Scott Davilla <davilla@4pi.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: add support for device_create on pre-2.6.26 kernels

Signed-off-by: Scott Davilla <davilla@4pi.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
include: don't define VOID if its already defined

Signed-off-by: Scott Davilla <davilla@4pi.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
include: lib doesn't build w/o the removed stdint include

So add it back...

Signed-off-by: Jarod Wilson <jarod@redhat.com>
example: make it build again

Signed-off-by: Jarod Wilson <jarod@redhat.com>
infra: add .gitignore files
driver: these files are generated, shouldn't be in git

Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: add basic export-to-kernel-git-tree script

Very little error-checking, but hey, it works so far...

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Merge branch 'master' of git+ssh://wilsonet.com/srv/web/git/crystalhd
examples: d'oh, binary wasn't supposed to go in there

Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: don't include unused headers when exporting to kernel tree

Signed-off-by: Jarod Wilson <jarod@redhat.com>
driver: further trim what gets exported

Signed-off-by: Jarod Wilson <jarod@redhat.com>
lib: fix up for installs to DESTDIR for packaging

- tested by creating Fedora libcrystalhd rpms

Signed-off-by: Jarod Wilson <jarod@redhat.com>