1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 
  25 include $(SRC)/uts/Makefile.uts
  26 
  27 FILEMODE=644
  28 
  29 #
  30 #       Note that the following headers are present in the kernel but
  31 #       neither installed or shipped as part of the product:
  32 #               cpuid_drv.h:            Private interface for cpuid consumers
  33 #               unix_bb_info.h:         Private interface to kcov
  34 #
  35 
  36 i386_HDRS=                      \
  37         agp/agpamd64gart_io.h   \
  38         agp/agpdefs.h           \
  39         agp/agpgart_impl.h      \
  40         agp/agpmaster_io.h      \
  41         agp/agptarget_io.h      \
  42         agpgart.h               \
  43         asy.h                   \
  44         fd_debug.h              \
  45         fdc.h                   \
  46         fdmedia.h               \
  47         mouse.h                 \
  48         ucode.h
  49 
  50 sparc_HDRS=                     \
  51         mouse.h                 \
  52         scsi/targets/ssddef.h   \
  53         $(MDESCHDRS)
  54 
  55 # Generated headers
  56 GENHDRS=                        \
  57         priv_const.h            \
  58         priv_names.h            \
  59         usb/usbdevs.h
  60 
  61 CHKHDRS=                        \
  62         acpi_drv.h              \
  63         acct.h                  \
  64         acctctl.h               \
  65         acl.h                   \
  66         acl_impl.h              \
  67         aggr.h                  \
  68         aggr_impl.h             \
  69         aio.h                   \
  70         aio_impl.h              \
  71         aio_req.h               \
  72         aiocb.h                 \
  73         ascii.h                 \
  74         asynch.h                \
  75         atomic.h                \
  76         attr.h                  \
  77         audio.h                 \
  78         audioio.h               \
  79         autoconf.h              \
  80         auxv.h                  \
  81         auxv_386.h              \
  82         auxv_SPARC.h            \
  83         avl.h                   \
  84         avl_impl.h              \
  85         bitmap.h                \
  86         bitset.h                \
  87         bl.h                    \
  88         blkdev.h                \
  89         bofi.h                  \
  90         bofi_impl.h             \
  91         bpp_io.h                \
  92         bootstat.h              \
  93         brand.h                 \
  94         buf.h                   \
  95         bufmod.h                \
  96         bustypes.h              \
  97         byteorder.h             \
  98         callb.h                 \
  99         callo.h                 \
 100         cap_util.h              \
 101         cpucaps.h               \
 102         cpucaps_impl.h          \
 103         ccompile.h              \
 104         cdio.h                  \
 105         cladm.h                 \
 106         class.h                 \
 107         clconf.h                \
 108         clock_impl.h            \
 109         cmlb.h                  \
 110         cmn_err.h               \
 111         compress.h              \
 112         condvar.h               \
 113         condvar_impl.h          \
 114         conf.h                  \
 115         consdev.h               \
 116         console.h               \
 117         consplat.h              \
 118         vt.h                    \
 119         vtdaemon.h              \
 120         kd.h                    \
 121         contract.h              \
 122         contract_impl.h         \
 123         copyops.h               \
 124         core.h                  \
 125         corectl.h               \
 126         cpc_impl.h              \
 127         cpc_pcbe.h              \
 128         cpr.h                   \
 129         cpupart.h               \
 130         cpuvar.h                \
 131         crc32.h                 \
 132         cred.h                  \
 133         cred_impl.h             \
 134         crtctl.h                \
 135         cryptmod.h              \
 136         csiioctl.h              \
 137         ctf.h                   \
 138         ctfs.h                  \
 139         ctfs_impl.h             \
 140         ctf_api.h               \
 141         ctype.h                 \
 142         cyclic.h                \
 143         cyclic_impl.h           \
 144         dacf.h                  \
 145         dacf_impl.h             \
 146         damap.h                 \
 147         damap_impl.h            \
 148         dc_ki.h                 \
 149         ddi.h                   \
 150         ddifm.h                 \
 151         ddifm_impl.h            \
 152         ddi_hp.h                \
 153         ddi_hp_impl.h           \
 154         ddi_intr.h              \
 155         ddi_intr_impl.h         \
 156         ddi_impldefs.h          \
 157         ddi_implfuncs.h         \
 158         ddi_obsolete.h          \
 159         ddi_timer.h             \
 160         ddidevmap.h             \
 161         ddidmareq.h             \
 162         ddimapreq.h             \
 163         ddipropdefs.h           \
 164         dditypes.h              \
 165         debug.h                 \
 166         des.h                   \
 167         devctl.h                \
 168         devcache.h              \
 169         devcache_impl.h         \
 170         devfm.h                 \
 171         devid_cache.h           \
 172         devinfo_impl.h          \
 173         devops.h                \
 174         devpolicy.h             \
 175         devpoll.h               \
 176         dirent.h                \
 177         disp.h                  \
 178         dkbad.h                 \
 179         dkio.h                  \
 180         dklabel.h               \
 181         dl.h                    \
 182         dlpi.h                  \
 183         dld.h                   \
 184         dld_impl.h              \
 185         dld_ioc.h               \
 186         dls.h                   \
 187         dls_mgmt.h              \
 188         dls_impl.h              \
 189         dma_i8237A.h            \
 190         dnlc.h                  \
 191         door.h                  \
 192         door_data.h             \
 193         door_impl.h             \
 194         dtrace.h                \
 195         dtrace_impl.h           \
 196         dumpadm.h               \
 197         dumphdr.h               \
 198         ecppsys.h               \
 199         ecppio.h                \
 200         ecppreg.h               \
 201         ecppvar.h               \
 202         efi_partition.h         \
 203         elf.h                   \
 204         elf_386.h               \
 205         elf_SPARC.h             \
 206         elf_notes.h             \
 207         elf_amd64.h             \
 208         elftypes.h              \
 209         emul64.h                \
 210         emul64cmd.h             \
 211         emul64var.h             \
 212         epm.h                   \
 213         errno.h                 \
 214         errorq.h                \
 215         errorq_impl.h           \
 216         esunddi.h               \
 217         ethernet.h              \
 218         euc.h                   \
 219         eucioctl.h              \
 220         exacct.h                \
 221         exacct_catalog.h        \
 222         exacct_impl.h           \
 223         exec.h                  \
 224         exechdr.h               \
 225         extdirent.h             \
 226         fault.h                 \
 227         fasttrap.h              \
 228         fasttrap_impl.h         \
 229         fbio.h                  \
 230         fbuf.h                  \
 231         fcntl.h                 \
 232         fct.h                   \
 233         fct_defines.h           \
 234         fctio.h                 \
 235         fdbuffer.h              \
 236         fdio.h                  \
 237         feature_tests.h         \
 238         fem.h                   \
 239         file.h                  \
 240         filio.h                 \
 241         flock.h                 \
 242         flock_impl.h            \
 243         fork.h                  \
 244         fsd.h                   \
 245         fsh.h                   \
 246         fsh_impl.h              \
 247         fss.h                   \
 248         fsspriocntl.h           \
 249         fsid.h                  \
 250         fssnap.h                \
 251         fssnap_if.h             \
 252         fstyp.h                 \
 253         ftrace.h                \
 254         fx.h                    \
 255         fxpriocntl.h            \
 256         gfs.h                   \
 257         gld.h                   \
 258         gldpriv.h               \
 259         group.h                 \
 260         hdio.h                  \
 261         hook.h                  \
 262         hook_event.h            \
 263         hook_impl.h             \
 264         hwconf.h                \
 265         ia.h                    \
 266         iapriocntl.h            \
 267         ibpart.h                \
 268         id32.h                  \
 269         idmap.h                 \
 270         ieeefp.h                \
 271         id_space.h              \
 272         instance.h              \
 273         int_const.h             \
 274         int_fmtio.h             \
 275         int_limits.h            \
 276         int_types.h             \
 277         inttypes.h              \
 278         ioccom.h                \
 279         ioctl.h                 \
 280         ipc.h                   \
 281         ipc_impl.h              \
 282         ipc_rctl.h              \
 283         ipmi.h                  \
 284         isa_defs.h              \
 285         iscsi_authclient.h      \
 286         iscsi_authclientglue.h  \
 287         iscsi_protocol.h        \
 288         jioctl.h                \
 289         kbd.h                   \
 290         kbdreg.h                \
 291         kbio.h                  \
 292         kcpc.h                  \
 293         kdi.h                   \
 294         kdi_impl.h              \
 295         kiconv.h                \
 296         kiconv_big5_utf8.h      \
 297         kiconv_cck_common.h     \
 298         kiconv_cp950hkscs_utf8.h        \
 299         kiconv_emea1.h          \
 300         kiconv_emea2.h          \
 301         kiconv_euckr_utf8.h     \
 302         kiconv_euctw_utf8.h     \
 303         kiconv_gb18030_utf8.h   \
 304         kiconv_gb2312_utf8.h    \
 305         kiconv_hkscs_utf8.h     \
 306         kiconv_ja.h             \
 307         kiconv_ja_jis_to_unicode.h      \
 308         kiconv_ja_unicode_to_jis.h      \
 309         kiconv_ko.h             \
 310         kiconv_latin1.h         \
 311         kiconv_sc.h             \
 312         kiconv_tc.h             \
 313         kiconv_uhc_utf8.h       \
 314         kiconv_utf8_big5.h      \
 315         kiconv_utf8_cp950hkscs.h        \
 316         kiconv_utf8_euckr.h     \
 317         kiconv_utf8_euctw.h     \
 318         kiconv_utf8_gb18030.h   \
 319         kiconv_utf8_gb2312.h    \
 320         kiconv_utf8_hkscs.h     \
 321         kiconv_utf8_uhc.h       \
 322         kidmap.h                \
 323         klpd.h                  \
 324         klwp.h                  \
 325         kmdb.h                  \
 326         kmem.h                  \
 327         kmem_impl.h             \
 328         kobj.h                  \
 329         kobj_impl.h             \
 330         ksocket.h               \
 331         kstat.h                 \
 332         kstr.h                  \
 333         ksyms.h                 \
 334         ksynch.h                \
 335         ldterm.h                \
 336         lgrp.h                  \
 337         lgrp_user.h             \
 338         libc_kernel.h           \
 339         link.h                  \
 340         list.h                  \
 341         list_impl.h             \
 342         llc1.h                  \
 343         loadavg.h               \
 344         lock.h                  \
 345         lockfs.h                \
 346         lockstat.h              \
 347         lofi.h                  \
 348         log.h                   \
 349         logindmux.h             \
 350         logindmux_impl.h        \
 351         lwp.h                   \
 352         lwp_timer_impl.h        \
 353         lwp_upimutex_impl.h     \
 354         lpif.h                  \
 355         mac.h                   \
 356         mac_client.h            \
 357         mac_client_impl.h       \
 358         mac_ether.h             \
 359         mac_flow.h              \
 360         mac_flow_impl.h         \
 361         mac_impl.h              \
 362         mac_provider.h          \
 363         mac_soft_ring.h         \
 364         mac_stat.h              \
 365         machelf.h               \
 366         map.h                   \
 367         md4.h                   \
 368         md5.h                   \
 369         md5_consts.h            \
 370         mdi_impldefs.h          \
 371         mem.h                   \
 372         mem_config.h            \
 373         memlist.h               \
 374         mkdev.h                 \
 375         mhd.h                   \
 376         mii.h                   \
 377         miiregs.h               \
 378         mixer.h                 \
 379         mman.h                  \
 380         mmapobj.h               \
 381         mntent.h                \
 382         mntio.h                 \
 383         mnttab.h                \
 384         modctl.h                \
 385         mode.h                  \
 386         model.h                 \
 387         modhash.h               \
 388         modhash_impl.h          \
 389         mount.h                 \
 390         mouse.h                 \
 391         msacct.h                \
 392         msg.h                   \
 393         msg_impl.h              \
 394         msio.h                  \
 395         msreg.h                 \
 396         mtio.h                  \
 397         multidata.h             \
 398         multidata_impl.h        \
 399         mutex.h                 \
 400         nbmlock.h               \
 401         ndifm.h                 \
 402         ndi_impldefs.h          \
 403         net80211.h              \
 404         net80211_crypto.h       \
 405         net80211_ht.h           \
 406         net80211_proto.h        \
 407         netconfig.h             \
 408         neti.h                  \
 409         netstack.h              \
 410         nexusdefs.h             \
 411         note.h                  \
 412         nvpair.h                \
 413         nvpair_impl.h           \
 414         objfs.h                 \
 415         objfs_impl.h            \
 416         ontrap.h                \
 417         open.h                  \
 418         openpromio.h            \
 419         panic.h                 \
 420         param.h                 \
 421         pathconf.h              \
 422         pathname.h              \
 423         pattr.h                 \
 424         queue.h                 \
 425         serializer.h            \
 426         pbio.h                  \
 427         pccard.h                \
 428         pci.h                   \
 429         pcie.h                  \
 430         pci_impl.h              \
 431         pci_tools.h             \
 432         pcmcia.h                \
 433         pctypes.h               \
 434         pfmod.h                 \
 435         pg.h                    \
 436         pghw.h                  \
 437         physmem.h               \
 438         pkp_hash.h              \
 439         pm.h                    \
 440         policy.h                \
 441         poll.h                  \
 442         poll_impl.h             \
 443         pool.h                  \
 444         pool_impl.h             \
 445         pool_pset.h             \
 446         port.h                  \
 447         port_impl.h             \
 448         port_kernel.h           \
 449         portif.h                \
 450         ppmio.h                 \
 451         pppt_ic_if.h            \
 452         pppt_ioctl.h            \
 453         priocntl.h              \
 454         priv.h                  \
 455         priv_impl.h             \
 456         prnio.h                 \
 457         proc.h                  \
 458         processor.h             \
 459         procfs.h                \
 460         procset.h               \
 461         project.h               \
 462         protosw.h               \
 463         prsystm.h               \
 464         pset.h                  \
 465         pshot.h                 \
 466         ptem.h                  \
 467         ptms.h                  \
 468         ptyvar.h                \
 469         raidioctl.h             \
 470         ramdisk.h               \
 471         random.h                \
 472         rctl.h                  \
 473         rctl_impl.h             \
 474         rds.h                   \
 475         reboot.h                \
 476         refstr.h                \
 477         refstr_impl.h           \
 478         resource.h              \
 479         rlioctl.h               \
 480         rt.h                    \
 481         rtpriocntl.h            \
 482         rwlock.h                \
 483         rwlock_impl.h           \
 484         rwstlock.h              \
 485         sad.h                   \
 486         schedctl.h              \
 487         sdt.h                   \
 488         select.h                \
 489         sem.h                   \
 490         sem_impl.h              \
 491         sema_impl.h             \
 492         semaphore.h             \
 493         sendfile.h              \
 494         ser_sync.h              \
 495         session.h               \
 496         sha1.h                  \
 497         sha1_consts.h           \
 498         sha2.h                  \
 499         sha2_consts.h           \
 500         share.h                 \
 501         shm.h                   \
 502         shm_impl.h              \
 503         sid.h                   \
 504         siginfo.h               \
 505         signal.h                \
 506         sleepq.h                \
 507         smbios.h                \
 508         smbios_impl.h           \
 509         sobject.h               \
 510         socket.h                \
 511         socket_impl.h           \
 512         socket_proto.h          \
 513         socketvar.h             \
 514         sockfilter.h            \
 515         sockio.h                \
 516         soundcard.h             \
 517         squeue.h                \
 518         squeue_impl.h           \
 519         srn.h                   \
 520         sservice.h              \
 521         stat.h                  \
 522         statfs.h                \
 523         statvfs.h               \
 524         stdbool.h               \
 525         stdint.h                \
 526         stermio.h               \
 527         stmf.h                  \
 528         stmf_defines.h          \
 529         stmf_ioctl.h            \
 530         stmf_sbd_ioctl.h        \
 531         stream.h                \
 532         strft.h                 \
 533         strlog.h                \
 534         strmdep.h               \
 535         stropts.h               \
 536         strredir.h              \
 537         strstat.h               \
 538         strsubr.h               \
 539         strsun.h                \
 540         strtty.h                \
 541         sunddi.h                \
 542         sunldi.h                \
 543         sunldi_impl.h           \
 544         sunmdi.h                \
 545         sunndi.h                \
 546         sunos_dhcp_class.h      \
 547         sunpm.h                 \
 548         suntpi.h                \
 549         suntty.h                \
 550         swap.h                  \
 551         synch.h                 \
 552         sysdc.h                 \
 553         sysdc_impl.h            \
 554         syscall.h               \
 555         sysconf.h               \
 556         sysconfig.h             \
 557         sysevent.h              \
 558         sysevent_impl.h         \
 559         sysinfo.h               \
 560         syslog.h                \
 561         sysmacros.h             \
 562         sysmsg_impl.h           \
 563         systeminfo.h            \
 564         systm.h                 \
 565         task.h                  \
 566         taskq.h                 \
 567         taskq_impl.h            \
 568         t_kuser.h               \
 569         t_lock.h                \
 570         telioctl.h              \
 571         termio.h                \
 572         termios.h               \
 573         termiox.h               \
 574         thread.h                \
 575         ticlts.h                \
 576         ticots.h                \
 577         ticotsord.h             \
 578         tihdr.h                 \
 579         time.h                  \
 580         time_impl.h             \
 581         time_std_impl.h         \
 582         timeb.h                 \
 583         timer.h                 \
 584         times.h                 \
 585         timex.h                 \
 586         timod.h                 \
 587         tirdwr.h                \
 588         tiuser.h                \
 589         tl.h                    \
 590         tnf.h                   \
 591         tnf_com.h               \
 592         tnf_probe.h             \
 593         tnf_writer.h            \
 594         todio.h                 \
 595         tpicommon.h             \
 596         ts.h                    \
 597         tspriocntl.h            \
 598         ttcompat.h              \
 599         ttold.h                 \
 600         tty.h                   \
 601         ttychars.h              \
 602         ttydev.h                \
 603         tuneable.h              \
 604         turnstile.h             \
 605         types.h                 \
 606         types32.h               \
 607         tzfile.h                \
 608         u8_textprep.h           \
 609         u8_textprep_data.h      \
 610         uadmin.h                \
 611         ucred.h                 \
 612         uio.h                   \
 613         ulimit.h                \
 614         un.h                    \
 615         unistd.h                \
 616         user.h                  \
 617         ustat.h                 \
 618         utime.h                 \
 619         utsname.h               \
 620         utssys.h                \
 621         uuid.h                  \
 622         va_impl.h               \
 623         va_list.h               \
 624         var.h                   \
 625         varargs.h               \
 626         vfs.h                   \
 627         vfs_opreg.h             \
 628         vfstab.h                \
 629         vgareg.h                \
 630         videodev2.h             \
 631         visual_io.h             \
 632         vlan.h                  \
 633         vm.h                    \
 634         vm_usage.h              \
 635         vmem.h                  \
 636         vmem_impl.h             \
 637         vmsystm.h               \
 638         vnic.h                  \
 639         vnic_impl.h             \
 640         vnode.h                 \
 641         vscan.h                 \
 642         vtoc.h                  \
 643         vtrace.h                \
 644         vuid_event.h            \
 645         vuid_wheel.h            \
 646         vuid_queue.h            \
 647         vuid_state.h            \
 648         vuid_store.h            \
 649         wait.h                  \
 650         waitq.h                 \
 651         wanboot_impl.h          \
 652         watchpoint.h            \
 653         winlockio.h             \
 654         zcons.h                 \
 655         zone.h                  \
 656         xti_inet.h              \
 657         xti_osi.h               \
 658         xti_xtiopt.h            \
 659         zmod.h
 660 
 661 HDRS=                           \
 662         $(GENHDRS)              \
 663         $(CHKHDRS)
 664 
 665 AUDIOHDRS=                      \
 666         ac97.h                  \
 667         audio_common.h          \
 668         audio_driver.h          \
 669         audio_oss.h             \
 670         g711.h
 671 
 672 AVHDRS=                         \
 673         iec61883.h
 674 
 675 BSCHDRS=                        \
 676         bscbus.h                \
 677         bscv_impl.h             \
 678         lom_ebuscodes.h         \
 679         lom_io.h                \
 680         lom_priv.h              \
 681         lombus.h
 682 
 683 MDESCHDRS=                      \
 684         mdesc.h                 \
 685         mdesc_impl.h            
 686 
 687 CPUDRVHDRS=                     \
 688         cpudrv.h
 689 
 690 CRYPTOHDRS=                     \
 691         elfsign.h               \
 692         ioctl.h                 \
 693         ioctladmin.h            \
 694         common.h                \
 695         impl.h                  \
 696         spi.h                   \
 697         api.h                   \
 698         ops_impl.h              \
 699         sched_impl.h
 700 
 701 DCAMHDRS=                       \
 702         dcam1394_io.h
 703 
 704 IBHDRS=                 \
 705         ib_types.h      \
 706         ib_pkt_hdrs.h
 707 
 708 IBTLHDRS=               \
 709         ibtl_types.h    \
 710         ibtl_status.h   \
 711         ibti.h          \
 712         ibti_cm.h       \
 713         ibci.h          \
 714         ibti_common.h   \
 715         ibvti.h         \
 716         ibtl_ci_types.h
 717 
 718 IBTLIMPLHDRS=           \
 719         ibtl_util.h
 720 
 721 IBNEXHDRS=              \
 722         ibnex_devctl.h
 723 
 724 IBMFHDRS=               \
 725         ibmf.h          \
 726         ibmf_msg.h      \
 727         ibmf_saa.h      \
 728         ibmf_utils.h
 729 
 730 IBMGTHDRS=              \
 731         ib_dm_attr.h    \
 732         ib_mad.h        \
 733         sm_attr.h       \
 734         sa_recs.h
 735 
 736 IBDHDRS=                \
 737         ibd.h
 738 
 739 OFHDRS=                 \
 740         ofa_solaris.h   \
 741         ofed_kernel.h
 742 
 743 RDMAHDRS=               \
 744         ib_addr.h       \
 745         ib_user_mad.h   \
 746         ib_user_sa.h    \
 747         ib_user_verbs.h \
 748         ib_verbs.h      \
 749         rdma_cm.h       \
 750         rdma_user_cm.h
 751 
 752 SOL_UVERBSHDRS=         \
 753         sol_uverbs.h    \
 754         sol_uverbs2ucma.h       \
 755         sol_uverbs_comp.h       \
 756         sol_uverbs_hca.h        \
 757         sol_uverbs_qp.h         \
 758         sol_uverbs_event.h
 759 
 760 SOL_UMADHDRS=           \
 761         sol_umad.h
 762 
 763 SOL_UCMAHDRS=           \
 764         sol_ucma.h      \
 765         sol_rdma_user_cm.h
 766 
 767 SOL_OFSHDRS=            \
 768         sol_cma.h       \
 769         sol_ib_cma.h    \
 770         sol_ofs_common.h        \
 771         sol_kverb_impl.h
 772 
 773 TAVORHDRS=              \
 774         tavor_ioctl.h
 775 
 776 HERMONHDRS=             \
 777         hermon_ioctl.h
 778 
 779 MLNXHDRS=               \
 780         mlnx_umap.h
 781 
 782 IDMHDRS=                \
 783         idm.h           \
 784         idm_impl.h      \
 785         idm_so.h        \
 786         idm_text.h      \
 787         idm_transport.h \
 788         idm_conn_sm.h
 789 
 790 ISCSITHDRS=             \
 791         radius_packet.h         \
 792         radius_protocol.h       \
 793         chap.h                  \
 794         isns_protocol.h         \
 795         iscsi_if.h              \
 796         iscsit_common.h
 797 
 798 ISOHDRS=                        \
 799         signal_iso.h
 800 
 801 DERIVED_LVMHDRS=        \
 802         md_mdiox.h              \
 803         md_basic.h              \
 804         mdmed.h                 \
 805         md_mhdx.h               \
 806         mdmn_commd.h
 807 
 808 LVMHDRS=                        \
 809         md_convert.h            \
 810         md_crc.h                \
 811         md_hotspares.h          \
 812         md_mddb.h               \
 813         md_mirror.h             \
 814         md_mirror_shared.h      \
 815         md_names.h              \
 816         md_notify.h             \
 817         md_raid.h               \
 818         md_rename.h             \
 819         md_sp.h                 \
 820         md_stripe.h             \
 821         md_trans.h              \
 822         mdio.h                  \
 823         mdvar.h                 
 824 
 825 ALL_LVMHDRS=                    \
 826         $(LVMHDRS)              \
 827         $(DERIVED_LVMHDRS)
 828 
 829 FMHDRS=                         \
 830         protocol.h              \
 831         util.h
 832 
 833 FMFSHDRS=                       \
 834         zfs.h
 835 
 836 FMIOHDRS=                       \
 837         ddi.h                   \
 838         disk.h                  \
 839         pci.h                   \
 840         scsi.h                  \
 841         sun4upci.h              \
 842         opl_mc_fm.h
 843 
 844 FSHDRS=                         \
 845         autofs.h                \
 846         cachefs_dir.h           \
 847         cachefs_dlog.h          \
 848         cachefs_filegrp.h       \
 849         cachefs_fs.h            \
 850         cachefs_fscache.h       \
 851         cachefs_ioctl.h         \
 852         cachefs_log.h           \
 853         decomp.h                \
 854         dv_node.h               \
 855         sdev_impl.h             \
 856         fifonode.h              \
 857         hsfs_isospec.h          \
 858         hsfs_node.h             \
 859         hsfs_rrip.h             \
 860         hsfs_spec.h             \
 861         hsfs_susp.h             \
 862         lofs_info.h             \
 863         lofs_node.h             \
 864         mntdata.h               \
 865         namenode.h              \
 866         pc_dir.h                \
 867         pc_fs.h                 \
 868         pc_label.h              \
 869         pc_node.h               \
 870         pxfs_ki.h               \
 871         snode.h                 \
 872         swapnode.h              \
 873         tmp.h                   \
 874         tmpnode.h               \
 875         udf_inode.h             \
 876         udf_volume.h            \
 877         ufs_acl.h               \
 878         ufs_bio.h               \
 879         ufs_filio.h             \
 880         ufs_fs.h                \
 881         ufs_fsdir.h             \
 882         ufs_inode.h             \
 883         ufs_lockfs.h            \
 884         ufs_log.h               \
 885         ufs_mount.h             \
 886         ufs_panic.h             \
 887         ufs_prot.h              \
 888         ufs_quota.h             \
 889         ufs_snap.h              \
 890         ufs_trans.h             \
 891         zfs.h                   \
 892         zut.h
 893 
 894 PCMCIAHDRS=             \
 895         pcata.h         \
 896         pcser_conf.h    \
 897         pcser_io.h      \
 898         pcser_reg.h     \
 899         pcser_manuspec.h \
 900         pcser_var.h
 901 
 902 SCSIHDRS=               \
 903         scsi.h          \
 904         scsi_address.h  \
 905         scsi_ctl.h      \
 906         scsi_fm.h       \
 907         scsi_params.h   \
 908         scsi_pkt.h      \
 909         scsi_resource.h \
 910         scsi_types.h    \
 911         scsi_watch.h
 912 
 913 SCSICONFHDRS=           \
 914         autoconf.h      \
 915         device.h
 916 
 917 SCSIGENHDRS=            \
 918         commands.h      \
 919         dad_mode.h      \
 920         inquiry.h       \
 921         message.h       \
 922         mode.h          \
 923         persist.h       \
 924         sense.h         \
 925         sff_frames.h    \
 926         smp_frames.h    \
 927         status.h
 928 
 929 SCSIIMPLHDRS=           \
 930         commands.h      \
 931         inquiry.h       \
 932         mode.h          \
 933         scsi_reset_notify.h \
 934         scsi_sas.h      \
 935         sense.h         \
 936         services.h      \
 937         smp_transport.h \
 938         spc3_types.h    \
 939         status.h        \
 940         transport.h     \
 941         types.h         \
 942         uscsi.h         \
 943         usmp.h
 944 
 945 SCSITARGETSHDRS=        \
 946         ses.h           \
 947         sesio.h         \
 948         sgendef.h       \
 949         stdef.h         \
 950         sddef.h         \
 951         smp.h
 952 
 953 SCSIADHDRS=
 954 
 955 SCSICADHDRS=
 956 
 957 SCSIISCSIHDRS=          \
 958         iscsi_door.h    \
 959         iscsi_if.h
 960 
 961 SCSIVHCIHDRS=           \
 962         scsi_vhci.h     \
 963         mpapi_impl.h    \
 964         mpapi_scsi_vhci.h
 965 
 966 SDCARDHDRS=             \
 967         sda.h           \
 968         sda_impl.h      \
 969         sda_ioctl.h
 970 
 971 FC4HDRS=                        \
 972         fc_transport.h  \
 973         linkapp.h       \
 974         fc.h            \
 975         fcp.h           \
 976         fcal_transport.h \
 977         fcal.h          \
 978         fcal_linkapp.h  \
 979         fcio.h
 980 
 981 FCHDRS=                 \
 982         fc.h            \
 983         fcio.h          \
 984         fc_types.h      \
 985         fc_appif.h
 986 
 987 FCIMPLHDRS=             \
 988         fc_error.h      \
 989         fcph.h
 990 
 991 FCULPHDRS=              \
 992         fcp_util.h      \
 993         fcsm.h
 994 
 995 SATAGENHDRS=            \
 996         sata_hba.h      \
 997         sata_defs.h     \
 998         sata_cfgadm.h
 999 
1000 SYSEVENTHDRS=           \
1001         ap_driver.h     \
1002         dev.h           \
1003         domain.h        \
1004         dr.h            \
1005         env.h           \
1006         eventdefs.h     \
1007         ipmp.h          \
1008         pwrctl.h        \
1009         svm.h           \
1010         vrrp.h
1011 
1012 CONTRACTHDRS=           \
1013         process.h       \
1014         process_impl.h  \
1015         device.h        \
1016         device_impl.h
1017 
1018 USBHDRS=        \
1019         usba.h  \
1020         usbai.h
1021 
1022 UWBHDRS=        \
1023         uwb.h   \
1024         uwbai.h
1025 
1026 UWBAHDRS=       \
1027         uwba.h
1028 
1029 USBAUDHDRS=           \
1030         usb_audio.h
1031 
1032 USBHUBDHDRS=            \
1033         hub.h           \
1034         hubd_impl.h
1035 
1036 USBHIDHDRS=             \
1037         hid.h
1038 
1039 USBHWARCHDRS=           \
1040         hwarc.h
1041 
1042 USBMSHDRS=              \
1043         usb_bulkonly.h  \
1044         usb_cbi.h
1045 
1046 USBPRNHDRS=           \
1047         usb_printer.h
1048 
1049 USBCDCHDRS=             \
1050         usb_cdc.h
1051 
1052 USBVIDHDRS=           \
1053         usbvc.h
1054 
1055 USBWCMHDRS=             \
1056         usbwcm.h
1057 
1058 UGENHDRS=           \
1059         usb_ugen.h
1060 
1061 HOTPLUGHDRS=    \
1062         hpcsvc.h        \
1063         hpctrl.h
1064 
1065 HOTPLUGPCIHDRS= \
1066         pcicfg.h        \
1067         pcihp.h
1068 
1069 RSMHDRS= \
1070         rsm.h   \
1071         rsm_common.h    \
1072         rsmapi_common.h \
1073         rsmpi.h \
1074         rsmpi_driver.h  \
1075         rsmka_path_int.h
1076 
1077 TSOLHDRS=               \
1078         label.h         \
1079         label_macro.h   \
1080         priv.h          \
1081         tndb.h          \
1082         tsyscall.h
1083 
1084 I1394HDRS=              \
1085         cmd1394.h       \
1086         id1394.h        \
1087         ieee1212.h      \
1088         ieee1394.h      \
1089         ixl1394.h       \
1090         s1394_impl.h    \
1091         t1394.h
1092 
1093 # "cmdk" headers used on sparc
1094 SDKTPHDRS=              \
1095         dadkio.h        \
1096         fdisk.h
1097 
1098 # "cmdk" headers used on i386
1099 DKTPHDRS=               \
1100         altsctr.h       \
1101         bbh.h           \
1102         cm.h            \
1103         cmdev.h         \
1104         cmdk.h          \
1105         cmpkt.h         \
1106         controller.h    \
1107         dadev.h         \
1108         dadk.h          \
1109         dadkio.h        \
1110         fctypes.h       \
1111         fdisk.h         \
1112         flowctrl.h      \
1113         gda.h           \
1114         quetypes.h      \
1115         queue.h         \
1116         tgcom.h         \
1117         tgdk.h
1118 
1119 # "pc" header files used on i386
1120 PCHDRS=                 \
1121         avintr.h        \
1122         dma_engine.h    \
1123         i8272A.h        \
1124         pcic_reg.h      \
1125         pcic_var.h      \
1126         pic.h           \
1127         pit.h           \
1128         rtc.h
1129 
1130 NXGEHDRS=                       \
1131         nxge.h                  \
1132         nxge_common.h           \
1133         nxge_common_impl.h      \
1134         nxge_defs.h             \
1135         nxge_hw.h               \
1136         nxge_impl.h             \
1137         nxge_ipp.h              \
1138         nxge_ipp_hw.h           \
1139         nxge_mac.h              \
1140         nxge_mac_hw.h           \
1141         nxge_fflp.h             \
1142         nxge_fflp_hw.h          \
1143         nxge_mii.h              \
1144         nxge_rxdma.h            \
1145         nxge_rxdma_hw.h         \
1146         nxge_txc.h              \
1147         nxge_txc_hw.h           \
1148         nxge_txdma.h            \
1149         nxge_txdma_hw.h         \
1150         nxge_virtual.h          \
1151         nxge_espc.h
1152 
1153 include Makefile.syshdrs
1154 
1155 dcam/%.check:   dcam/%.h
1156         $(DOT_H_CHECK)
1157 
1158 CHECKHDRS=                                              \
1159         $($(MACH)_HDRS:%.h=%.check)                     \
1160         $(AUDIOHDRS:%.h=audio/%.check)                  \
1161         $(AVHDRS:%.h=av/%.check)                        \
1162         $(BSCHDRS:%.h=%.check)                          \
1163         $(CHKHDRS:%.h=%.check)                          \
1164         $(CPUDRVHDRS:%.h=%.check)                       \
1165         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1166         $(DCAMHDRS:%.h=dcam/%.check)                    \
1167         $(FC4HDRS:%.h=fc4/%.check)                      \
1168         $(FCHDRS:%.h=fibre-channel/%.check)             \
1169         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1170         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1171         $(IBHDRS:%.h=ib/%.check)                        \
1172         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1173         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1174         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1175         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1176         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1177         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1178         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1179         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1180         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1181         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1182         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1183         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1184         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1185         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1186         $(IDMHDRS:%.h=idm/%.check)                      \
1187         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1188         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1189         $(ISOHDRS:%.h=iso/%.check)                      \
1190         $(FMHDRS:%.h=fm/%.check)                        \
1191         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1192         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1193         $(FSHDRS:%.h=fs/%.check)                        \
1194         $(LVMHDRS:%.h=lvm/%.check)                      \
1195         $(PCMCIAHDRS:%.h=pcmcia/%.check)                \
1196         $(SCSIHDRS:%.h=scsi/%.check)                    \
1197         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1198         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1199         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1200         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1201         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1202         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1203         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1204         $(SATAGENHDRS:%.h=sata/%.check)                 \
1205         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1206         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1207         $(CONTRACTHDRS:%.h=contract/%.check)            \
1208         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1209         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1210         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1211         $(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)   \
1212         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1213         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1214         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1215         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1216         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1217         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1218         $(USBHDRS:%.h=usb/%.check)                      \
1219         $(UWBHDRS:%.h=uwb/%.check)                      \
1220         $(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1221         $(I1394HDRS:%.h=1394/%.check)                   \
1222         $(RSMHDRS:%.h=rsm/%.check)                      \
1223         $(TSOLHDRS:%.h=tsol/%.check)                    \
1224         $(NXGEHDRS:%.h=nxge/%.check)
1225 
1226 
1227 .KEEP_STATE:
1228 
1229 .PARALLEL:                      \
1230         $(CHECKHDRS)            \
1231         $(ROOTHDRS)             \
1232         $(ROOTAUDHDRS)          \
1233         $(ROOTAVHDRS)           \
1234         $(ROOTCRYPTOHDRS)       \
1235         $(ROOTDCAMHDRS)         \
1236         $(ROOTISOHDRS)          \
1237         $(ROOTIDMHDRS)          \
1238         $(ROOTISCSIHDRS)        \
1239         $(ROOTISCSITHDRS)       \
1240         $(ROOTFC4HDRS)          \
1241         $(ROOTFCHDRS)           \
1242         $(ROOTFCIMPLHDRS)       \
1243         $(ROOTFCULPHDRS)        \
1244         $(ROOTFMHDRS)           \
1245         $(ROOTFMIOHDRS)         \
1246         $(ROOTFMFSHDRS)         \
1247         $(ROOTFSHDRS)           \
1248         $(ROOTIBDHDRS)          \
1249         $(ROOTIBHDRS)           \
1250         $(ROOTIBTLHDRS)         \
1251         $(ROOTIBTLIMPLHDRS)     \
1252         $(ROOTIBNEXHDRS)        \
1253         $(ROOTIBMGTHDRS)        \
1254         $(ROOTIBMFHDRS)         \
1255         $(ROOTOFHDRS)           \
1256         $(ROOTRDMAHDRS)         \
1257         $(ROOTSOL_OFSHDRS)      \
1258         $(ROOTSOL_UMADHDRS)     \
1259         $(ROOTSOL_UVERBSHDRS)   \
1260         $(ROOTSOL_UCMAHDRS)     \
1261         $(ROOTTAVORHDRS)        \
1262         $(ROOTHERMONHDRS)       \
1263         $(ROOTMLNXHDRS)         \
1264         $(ROOTLVMHDRS)          \
1265         $(ROOTPCMCIAHDRS)       \
1266         $(ROOTSCSIHDRS)         \
1267         $(ROOTSCSIADHDRS)       \
1268         $(ROOTSCSICONFHDRS)     \
1269         $(ROOTSCSIISCSIHDRS)    \
1270         $(ROOTSCSIGENHDRS)      \
1271         $(ROOTSCSIIMPLHDRS)     \
1272         $(ROOTSCSIVHCIHDRS)     \
1273         $(ROOTSDCARDHDRS)       \
1274         $(ROOTSYSEVENTHDRS)     \
1275         $(ROOTCONTRACTHDRS)     \
1276         $(ROOTUSBHDRS)          \
1277         $(ROOTUWBHDRS)          \
1278         $(ROOTUWBAHDRS)         \
1279         $(ROOTUSBAUDHDRS)       \
1280         $(ROOTUSBHUBDHDRS)      \
1281         $(ROOTUSBHIDHDRS)       \
1282         $(ROOTUSBHRCHDRS)       \
1283         $(ROOTUSBMSHDRS)        \
1284         $(ROOTUSBPRNHDRS)       \
1285         $(ROOTUSBCDCHDRS)       \
1286         $(ROOTUSBVIDHDRS)       \
1287         $(ROOTUSBWCMHDRS)       \
1288         $(ROOTUGENHDRS)         \
1289         $(ROOT1394HDRS)         \
1290         $(ROOTHOTPLUGHDRS)      \
1291         $(ROOTHOTPLUGPCIHDRS)   \
1292         $(ROOTRSMHDRS)          \
1293         $(ROOTTSOLHDRS)         \
1294         $($(MACH)_ROOTHDRS)
1295 
1296 
1297 install_h:                      \
1298         $(ROOTDIRS)             \
1299         LVMDERIVED_H            \
1300         .WAIT                   \
1301         $(ROOTHDRS)             \
1302         $(ROOTAUDHDRS)          \
1303         $(ROOTAVHDRS)           \
1304         $(ROOTCRYPTOHDRS)       \
1305         $(ROOTDCAMHDRS)         \
1306         $(ROOTISOHDRS)          \
1307         $(ROOTIDMHDRS)          \
1308         $(ROOTISCSIHDRS)        \
1309         $(ROOTISCSITHDRS)       \
1310         $(ROOTFC4HDRS)          \
1311         $(ROOTFCHDRS)           \
1312         $(ROOTFCIMPLHDRS)       \
1313         $(ROOTFCULPHDRS)        \
1314         $(ROOTFMHDRS)           \
1315         $(ROOTFMFSHDRS)         \
1316         $(ROOTFMIOHDRS)         \
1317         $(ROOTFSHDRS)           \
1318         $(ROOTIBDHDRS)          \
1319         $(ROOTIBHDRS)           \
1320         $(ROOTIBTLHDRS)         \
1321         $(ROOTIBTLIMPLHDRS)     \
1322         $(ROOTIBNEXHDRS)        \
1323         $(ROOTIBMGTHDRS)        \
1324         $(ROOTIBMFHDRS)         \
1325         $(ROOTOFHDRS)           \
1326         $(ROOTRDMAHDRS)         \
1327         $(ROOTSOL_OFSHDRS)      \
1328         $(ROOTSOL_UMADHDRS)     \
1329         $(ROOTSOL_UVERBSHDRS)   \
1330         $(ROOTSOL_UCMAHDRS)     \
1331         $(ROOTTAVORHDRS)        \
1332         $(ROOTHERMONHDRS)       \
1333         $(ROOTMLNXHDRS)         \
1334         $(ROOTLVMHDRS)          \
1335         $(ROOTPCMCIAHDRS)       \
1336         $(ROOTSCSIHDRS)         \
1337         $(ROOTSCSIADHDRS)       \
1338         $(ROOTSCSIISCSIHDRS)    \
1339         $(ROOTSCSICONFHDRS)     \
1340         $(ROOTSCSIGENHDRS)      \
1341         $(ROOTSCSIIMPLHDRS)     \
1342         $(ROOTSCSIVHCIHDRS)     \
1343         $(ROOTSDCARDHDRS)       \
1344         $(ROOTSYSEVENTHDRS)     \
1345         $(ROOTCONTRACTHDRS)     \
1346         $(ROOTUWBHDRS)          \
1347         $(ROOTUWBAHDRS)         \
1348         $(ROOTUSBHDRS)          \
1349         $(ROOTUSBAUDHDRS)       \
1350         $(ROOTUSBHUBDHDRS)      \
1351         $(ROOTUSBHIDHDRS)       \
1352         $(ROOTUSBHRCHDRS)       \
1353         $(ROOTUSBMSHDRS)        \
1354         $(ROOTUSBPRNHDRS)       \
1355         $(ROOTUSBCDCHDRS)       \
1356         $(ROOTUSBVIDHDRS)       \
1357         $(ROOTUSBWCMHDRS)       \
1358         $(ROOTUGENHDRS)         \
1359         $(ROOT1394HDRS)         \
1360         $(ROOTHOTPLUGHDRS)      \
1361         $(ROOTHOTPLUGPCIHDRS)   \
1362         $(ROOTRSMHDRS)          \
1363         $(ROOTTSOLHDRS)         \
1364         $($(MACH)_ROOTHDRS)
1365 
1366 all_h: $(GENHDRS)
1367 
1368 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1369         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1370 
1371 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1372         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1373 
1374 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1375         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1376 
1377 LVMDERIVED_H:
1378         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1379 
1380 clean:
1381         $(RM) $(GENHDRS)
1382 
1383 clobber:        clean
1384 
1385 check:  $(CHECKHDRS)
1386 
1387 FRC:
1388 
1389 # EXPORT DELETE START
1390 EXPORT_SRC:
1391         $(RM) wanboot_impl.h+ Makefile+
1392         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1393                 < wanboot_impl.h > wanboot_impl.h+
1394         $(MV) wanboot_impl.h+ wanboot_impl.h
1395         sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1396                 < Makefile > Makefile+
1397         $(RM) Makefile
1398         $(MV) Makefile+ Makefile
1399         $(CHMOD) 444 Makefile wanboot_impl.h
1400 # EXPORT DELETE END